DEADSOFTWARE

oops
[d2df-sdl.git] / src / engine / e_sound_al.inc
index 38b9bb6109757f788eaf9864e4283b2d07a39385..04305b61ec0b4ce522dd4dfd99f9f594267d44a4 100644 (file)
@@ -412,6 +412,8 @@ begin
     e_SoundsArray[find_id].Loader := Loader;
   end;
 
+  // the calling side won't free this, the loader will get a copy, so fuck it
+  FreeMem(pData);
   ID := find_id;
   Result := True;
 end;