[filechooser] Don't leak a GFile

Reported by Morten Welinder <mortenw@gnome.org>

https://bugzilla.gnome.org/show_bug.cgi?id=646458
This commit is contained in:
Federico Mena Quintero
2011-04-01 13:25:24 -06:00
parent 2aad7a5151
commit a24f61fb37

View File

@ -10031,13 +10031,15 @@ list_row_activated (GtkTreeView *tree_view,
if (is_folder && file)
{
change_folder_and_display_error (impl, file, FALSE);
return;
goto out;
}
if (impl->action == GTK_FILE_CHOOSER_ACTION_OPEN ||
impl->action == GTK_FILE_CHOOSER_ACTION_SAVE)
g_signal_emit_by_name (impl, "file-activated");
out:
if (file)
g_object_unref (file);
}