blueloveTH il y a 2 ans
Parent
commit
01fecaa352
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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);
     }
 };