Commit b17bd4ea authored by Rui Matos's avatar Rui Matos Committed by Bastien Nocera
Browse files

printers: Don't leak a couple of dialogs

https://bugzilla.gnome.org/show_bug.cgi?id=708286
parent 7c581678
......@@ -289,7 +289,7 @@ pp_authentication_dialog_finalize (GObject *object)
PpAuthenticationDialog *dialog = PP_AUTHENTICATION_DIALOG (object);
PpAuthenticationDialogPrivate *priv = dialog->priv;
gtk_widget_hide (priv->dialog);
g_clear_pointer (&priv->dialog, gtk_widget_destroy);
g_object_unref (priv->builder);
g_free (priv->text);
......
......@@ -505,6 +505,8 @@ pp_new_printer_dialog_finalize (GObject *object)
g_clear_object (&priv->cancellable);
}
g_clear_pointer (&priv->dialog, gtk_widget_destroy);
if (priv->builder)
g_clear_object (&priv->builder);
......
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