Skip to content

Commit 7eb7850

Browse files
committed
Collect refresh sequence pointer
Otherwise it will be freed during a collect and potentially overwritten. This is a bug in 8.x but isn't seen as early as in 9.x because 9.x will collect before expanding the split heap further. Fixes #8793
1 parent c09a4f9 commit 7eb7850

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

shared-module/epaperdisplay/EPaperDisplay.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ void epaperdisplay_epaperdisplay_collect_ptrs(epaperdisplay_epaperdisplay_obj_t
507507
displayio_display_bus_collect_ptrs(&self->bus);
508508
gc_collect_ptr((void *)self->start_sequence);
509509
gc_collect_ptr((void *)self->stop_sequence);
510+
gc_collect_ptr((void *)self->refresh_sequence);
510511
}
511512

512513
size_t maybe_refresh_epaperdisplay(void) {

0 commit comments

Comments
 (0)