fix memory leaks and bug where STREAMINFO was not being written back
fix memory leaks and bug where STREAMINFO was not being written back

fredericgermain/flac,waitman/flac,Distrotech/flac,waitman/flac,LordJZ/libflac,kode54/flac,fredericgermain/flac,waitman/flac,kode54/flac,LordJZ/libflac,waitman/flac,kode54/flac,LordJZ/libflac,Distrotech/flac,kode54/flac,waitman/flac,fredericgermain/flac,Distrotech/flac,fredericgermain/flac,Distrotech/flac,LordJZ/libflac