Commits

Shlomi Fish committed 796c1ca

Fix a free/MikMod_free mismatch.

glibc and valgrind did not like it.

  • Participants
  • Parent commits 34639f4

Comments (0)

Files changed (1)

File libmikmod/drivers/drv_aiff.c

     VC_Exit ();
 
     /* write in the actual sizes now */
-    if (gAiffOut != NULL)
+    if (gAiffOut)
     {
         AIFF_PutHeader ();
         _mm_delete_file_writer (gAiffOut);
         gAiffFile = NULL;
         gAiffOut = NULL;
     }
-    if (gAiffAudioBuffer != NULL)
+    if (gAiffAudioBuffer)
     {
-        free (gAiffAudioBuffer);
+        MikMod_free (gAiffAudioBuffer);
         gAiffAudioBuffer = NULL;
     }
 }