浏览代码

Fixed memory issue related to calls into the debug stack from external threads.

woollybah 5 年之前
父节点
当前提交
fbc9e5ebfa
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      appstub.mod/debugger_mt.stdio.bmx

+ 2 - 2
appstub.mod/debugger_mt.stdio.bmx

@@ -901,7 +901,7 @@ Function OnDebugLeaveScope()
 	If dbgState.scopeStackTop
 		dbgState.currentScope=dbgState.scopeStack[dbgState.scopeStackTop-1]
 	Else
-		dbgState.currentScope=New TScope
+		dbgState.currentScope=Null
 	EndIf
 
 	GCResume	
@@ -940,7 +940,7 @@ Function OnDebugPopExState()
 	If dbgState.scopeStackTop
 		dbgState.currentScope=dbgState.scopeStack[dbgState.scopeStackTop-1]
 	Else
-		dbgState.currentScope=New TScope
+		dbgState.currentScope=Null
 	EndIf
 
 	GCResume