Commit fb671efc authored by Alberts Muktupāvels's avatar Alberts Muktupāvels
Browse files

screensaver: fix monitor-removed signal handling

g_slist_delete_link removes link and frees it. Change it to
g_slist_remove_link and manually free link after destroying window.

#46
parent 7b2eefe4
Pipeline #168416 passed with stages
in 8 minutes and 3 seconds
......@@ -504,8 +504,9 @@ monitor_removed_cb (GdkDisplay *display,
if (gf_window_get_monitor (GF_WINDOW (l->data)) != monitor)
continue;
self->windows = g_slist_delete_link (self->windows, l);
self->windows = g_slist_remove_link (self->windows, l);
gtk_widget_destroy (GTK_WIDGET (l->data));
g_slist_free (l);
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment