]> git.mxchange.org Git - simgear.git/commitdiff
should use free instead of delete for malloced data.
authorehofman <ehofman>
Thu, 22 Oct 2009 12:07:56 +0000 (12:07 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 22 Oct 2009 20:52:05 +0000 (22:52 +0200)
simgear/sound/sample_openal.hxx

index ae985ebaaf56415242a340a0148a315ac0f2e7bc..070cba89815e1cda0f339d516c13ed007d1915a9 100644 (file)
@@ -167,7 +167,7 @@ public:
      * Free the data associated with this audio sample
      */
     void free_data() {
-        delete _data.release();
+        free( _data.release() );
     }
 
     /**