mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
gtkplacesview: disconnect from server list monitor changes on destroy
It might happen otherwise that a change is recorded in between the widget dispose and finalization, causing a crash when setting the visible name for the GtkStack (as that will be NULL at that point)
This commit is contained in:
parent
f9452957cd
commit
4900c3eb3b
@ -392,6 +392,9 @@ gtk_places_view_destroy (GtkWidget *widget)
|
||||
if (priv->network_monitor)
|
||||
g_signal_handlers_disconnect_by_func (priv->network_monitor, update_places, widget);
|
||||
|
||||
if (priv->server_list_monitor)
|
||||
g_signal_handlers_disconnect_by_func (priv->server_list_monitor, server_file_changed_cb, widget);
|
||||
|
||||
g_cancellable_cancel (priv->cancellable);
|
||||
g_cancellable_cancel (priv->networks_fetching_cancellable);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user