- Fixed tiny memory leak in DOSBox patch

This commit is contained in:
sergm
2013-08-03 20:42:33 +03:00
parent a9a71728ca
commit ac008a6c3f
3 changed files with 6 additions and 0 deletions

View File

@@ -111,6 +111,8 @@ public:
LOG_MSG("MT32: Error initialising emulation");
return false;
}
MT32Emu::ROMImage::freeROMImage(controlROMImage);
MT32Emu::ROMImage::freeROMImage(pcmROMImage);
Section_prop *section = static_cast<Section_prop *>(control->GetSection("midi"));
if (strcmp(section->Get_string("mt32.reverb.mode"), "auto") != 0) {

View File

@@ -92,6 +92,8 @@ public:
LOG_MSG("MT32: Error initialising emulation");
return false;
}
MT32Emu::ROMImage::freeROMImage(controlROMImage);
MT32Emu::ROMImage::freeROMImage(pcmROMImage);
Section_prop *section = static_cast<Section_prop *>(control->GetSection("midi"));
if (strcmp(section->Get_string("mt32.reverb.mode"), "auto") != 0) {

View File

@@ -103,6 +103,8 @@ public:
LOG_MSG("MT32: Error initialising emulation");
return false;
}
MT32Emu::ROMImage::freeROMImage(controlROMImage);
MT32Emu::ROMImage::freeROMImage(pcmROMImage);
Section_prop *section = static_cast<Section_prop *>(control->GetSection("midi"));
if (strcmp(section->Get_string("mt32.reverb.mode"), "auto") != 0) {