Commit 7fbf6a67 authored by Matthias Clasen's avatar Matthias Clasen

Fix a small memory leak

GtkPrintUnixDialog was leaking a GFile.
Spotted by Christian Persch in
parent 63bb834b
......@@ -641,10 +641,14 @@ error_dialogs (GtkPrintUnixDialog *print_dialog,
if (g_file_query_exists (file, NULL))
GFile *parent;
toplevel = get_toplevel (GTK_WIDGET (print_dialog));
basename = g_file_get_basename (file);
dirname = g_file_get_parse_name (g_file_get_parent (file));
parent = g_file_get_parent (file);
dirname = g_file_get_parse_name (parent);
g_object_unref (parent);
dialog = gtk_message_dialog_new (toplevel,
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