Qt: Don't crash if patch isn't present
Vicki Pfau vi@endrift.com
Sat, 01 Sep 2018 21:22:07 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
M
src/platform/qt/CoreController.cpp
→
src/platform/qt/CoreController.cpp
@@ -571,8 +571,8 @@ VFile* patch = VFileDevice::open(patchPath, O_RDONLY);
if (patch) { m_threadContext.core->loadPatch(m_threadContext.core, patch); m_patched = true; + patch->close(patch); } - patch->close(patch); if (mCoreThreadHasStarted(&m_threadContext)) { reset(); }