all repos — mgba @ 4dd4d9b25c3ff353cd76d8bd8458d6462e49ad06

mGBA Game Boy Advance Emulator

Qt: Fix leak in OverrideView
Jeffrey Pfau jeffrey@endrift.com
Sat, 17 Sep 2016 12:24:28 -0700
commit

4dd4d9b25c3ff353cd76d8bd8458d6462e49ad06

parent

ebecb18395dbbe3a8c2c86159feb002d5974b79e

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/OverrideView.cppsrc/platform/qt/OverrideView.cpp

@@ -144,6 +144,7 @@ gba->override.idleLoop != IDLE_LOOP_NONE) {

m_controller->setOverride(gba); } else { m_controller->clearOverride(); + delete gba; } } #endif

@@ -156,6 +157,7 @@ if (gb->override.mbc != GB_MBC_AUTODETECT || gb->override.model != GB_MODEL_AUTODETECT) {

m_controller->setOverride(gb); } else { m_controller->clearOverride(); + delete gb; } } #endif