Commit 1afca551 authored by Matthias Clasen's avatar Matthias Clasen

Prevent a segfault if GtkAppChooserDialog gets disposed early

If the async call is finished after the dialog is already disposed,
bad things happen. Prevent that by marking the dialog as dismissed
in this case.
parent 01c810b4
...@@ -536,6 +536,8 @@ gtk_app_chooser_dialog_dispose (GObject *object) ...@@ -536,6 +536,8 @@ gtk_app_chooser_dialog_dispose (GObject *object)
cancel_and_clear_cancellable (self); cancel_and_clear_cancellable (self);
g_clear_object (&self->priv->online); g_clear_object (&self->priv->online);
self->priv->dismissed = TRUE;
G_OBJECT_CLASS (gtk_app_chooser_dialog_parent_class)->dispose (object); G_OBJECT_CLASS (gtk_app_chooser_dialog_parent_class)->dispose (object);
} }
......
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