Commit e7d4d770 authored by Matthias Clasen's avatar Matthias Clasen

Fix a memory leak with file chooser previews

parent d93934ba
......@@ -9611,6 +9611,13 @@ check_preview_change (GtkFileChooserDefault *impl)
g_signal_emit_by_name (impl, "update-preview");
}
else
{
if (new_file)
g_object_unref (new_file);
g_free (new_display_name);
}
}
static void
......
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