X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fsound%2Fsample_openal.cxx;h=6f913bd881f062b316496209de0ca4b2ac36e710;hb=2af37b484ec146346dd848b5d0ba5fa74e307411;hp=366b6105a711a1a6a53fdd88ec8a6e752f49b387;hpb=7629e293975917d0e9689d0602ff0e8aec293802;p=simgear.git diff --git a/simgear/sound/sample_openal.cxx b/simgear/sound/sample_openal.cxx index 366b6105..6f913bd8 100644 --- a/simgear/sound/sample_openal.cxx +++ b/simgear/sound/sample_openal.cxx @@ -141,8 +141,7 @@ SGSoundSample::SGSoundSample( const char *path, const char *file) : } // constructor -SGSoundSample::SGSoundSample( unsigned char *_data, int len, int _freq, - bool cleanup) : +SGSoundSample::SGSoundSample( unsigned char *_data, int len, int _freq ) : buffer(0), source(0), pitch(1.0), @@ -180,10 +179,6 @@ SGSoundSample::SGSoundSample( unsigned char *_data, int len, int _freq, throw sg_exception("Failed to buffer data."); } - if ( cleanup ) { - free(_data); - } - print_openal_error("constructor return"); }