mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 22:41:30 +03:00
gtk: Do not attempt to use now-freed scaffolding when iterating them to quit
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
804faacf82
commit
9c0fa9c939
@ -1285,8 +1285,9 @@ nserror nsgtk_scaffolding_destroy_all(void)
|
||||
|
||||
/* iterate all scaffolding windows and destroy them */
|
||||
while (gs != NULL) {
|
||||
struct nsgtk_scaffolding *next = gs->next;
|
||||
gtk_widget_destroy(GTK_WIDGET(gs->window));
|
||||
gs = gs->next;
|
||||
gs = next;
|
||||
}
|
||||
return NSERROR_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user