浏览代码

Update vm.c

blueloveTH 10 月之前
父节点
当前提交
33963d7054
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/interpreter/vm.c

+ 2 - 0
src/interpreter/vm.c

@@ -255,6 +255,8 @@ void VM__ctor(VM* self) {
 }
 }
 
 
 void VM__dtor(VM* self) {
 void VM__dtor(VM* self) {
+    // reset traceinfo
+    py_sys_settrace(NULL, true);
     // destroy all objects
     // destroy all objects
     ManagedHeap__dtor(&self->heap);
     ManagedHeap__dtor(&self->heap);
     // clear frames
     // clear frames