summarylogtreecommitdiffstats
path: root/0001-fix-crash-when-debug.patch
blob: f8eda1321af818286b3ddcf3eb0c35d16b267ec6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/RedPandaIDE/debugger/debugger.cpp b/RedPandaIDE/debugger/debugger.cpp
index e4954044..dc56efdc 100644
--- a/RedPandaIDE/debugger/debugger.cpp
+++ b/RedPandaIDE/debugger/debugger.cpp
@@ -157,7 +157,8 @@ bool Debugger::startClient(int compilerSetIndex,
             if (mExecuting) {
                 stop();
             }
-            mTarget->deleteLater();
+            if (mTarget)
+                mTarget->deleteLater();
             mTarget = nullptr;
         });
         mTarget->addBinDirs(binDirs);