Qt: Fix leak in OverrideView
Jeffrey Pfau jeffrey@endrift.com
Sat, 17 Sep 2016 12:24:28 -0700
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/platform/qt/OverrideView.cpp
→
src/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