thunderbolt: Fix GCancellable leak

This commit is contained in:
Robert Ancell 2020-01-31 10:06:06 +13:00
parent 48143b4f92
commit 42c8e63b1e

View file

@ -900,6 +900,7 @@ cc_bolt_panel_dispose (GObject *object)
/* cancel any ongoing operation */
g_cancellable_cancel (panel->cancel);
g_clear_object (&panel->cancel);
/* Must be destroyed in dispose, not finalize. */
g_clear_pointer ((GtkWidget **) &panel->device_dialog, gtk_widget_destroy);