blueloveTH %!s(int64=2) %!d(string=hai) anos
pai
achega
01fecaa352
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      include/pocketpy/frame.h

+ 2 - 0
include/pocketpy/frame.h

@@ -122,6 +122,8 @@ struct Frame {
     void _gc_mark() const {
         PK_OBJ_MARK(_module);
         co->_gc_mark();
+        // Frame could be stored in a generator, so mark _callable for safety
+        if(_callable != nullptr) PK_OBJ_MARK(_callable);
     }
 };