mirror of
https://github.com/VARCem/munt.git
synced 2026-07-08 18:16:13 +00:00
- Fixed tiny memory leak in DOSBox patch
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user