Ticket #9132: compress_sword1_mem_leak.patch

File compress_sword1_mem_leak.patch, 385 bytes (added by criezy, 11 years ago)
  • compress.cpp

     
    676676        Common::File tmpFile(TEMP_RAW, "wb");
    677677        tmpFile.write(aifData, size);
    678678        tmpFile.close();
     679        free(aifData);
    679680       
    680681        // Convert the temporary raw file to MP3/OGG/FLAC
    681682        // Samples are always signed, and big endian.