mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 03:50:16 +00:00
fix a bug
This commit is contained in:
parent
7f68155b04
commit
01fecaa352
@ -122,6 +122,8 @@ struct Frame {
|
|||||||
void _gc_mark() const {
|
void _gc_mark() const {
|
||||||
PK_OBJ_MARK(_module);
|
PK_OBJ_MARK(_module);
|
||||||
co->_gc_mark();
|
co->_gc_mark();
|
||||||
|
// Frame could be stored in a generator, so mark _callable for safety
|
||||||
|
if(_callable != nullptr) PK_OBJ_MARK(_callable);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user