Skip to content

Commit c6cc589

Browse files
zsxOldes
authored andcommitted
Mark GOB field when marking an event
Or the GOB field might be recycled unintentionally. (cherry picked from commit f61bdcf)
1 parent db842b5 commit c6cc589

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/core/m-gc.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,11 @@ static void Mark_Series(REBSER *series, REBCNT depth);
165165
// The ->ser field of the REBEVT is void*, so we must cast
166166
// Comment says it is a "port or object"
167167
CHECK_MARK((REBSER*)VAL_EVENT_SER(value), depth);
168-
}
168+
}
169+
170+
if (IS_EVENT_MODEL(value, EVM_GUI)) {
171+
Mark_Gob(VAL_EVENT_SER(value), depth);
172+
}
169173

170174
if (IS_EVENT_MODEL(value, EVM_DEVICE)) {
171175
// In the case of being an EVM_DEVICE event type, the port! will

0 commit comments

Comments
 (0)