Fix a memory leak with file chooser previews

This commit is contained in:
Matthias Clasen 2011-02-17 18:34:28 -05:00
parent d93934ba6c
commit e7d4d77093

View File

@ -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