Skip to content
Snippets Groups Projects

Fixer mixer: Mixer Memory Leaks

Merged Sryder requested to merge Sryder/SRB2:fixer-mixer into master
  1. Oct 07, 2018
    • Sryder's avatar
      Fix the crashing bug hopefully · fb6c3298
      Sryder authored
      A value of 1 in freesrc for Mix_LoadWAV_RW and Mix_LoadMus_RW calls SDL_RWclose on the RWops anyway.
      For Mix_LoadWAV_RW the RWops is freed right after the data is loaded (because it makes a copy of the data in memory)
      For Mix_LoadMUS_RW the RWops is freed when Mix_FreeMusic is called (because the data is not a copy)
      So setting 1 on freesrc doesn't actually free the RWops immediately on Mix_LoadMus_RW *unless* it failed to load any music.
      fb6c3298
    • Sryder's avatar
      Fix compiler warnings. · 02597e0b
      Sryder authored
      02597e0b
  2. Oct 06, 2018
Loading