aboutsummaryrefslogtreecommitdiffstats
path: root/embed/downloader-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'embed/downloader-view.c')
-rw-r--r--embed/downloader-view.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index 70a930fd9..2e0679e49 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -1076,7 +1076,7 @@ open_selection_foreach (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *ite
if (details->status != DOWNLOAD_STATUS_COMPLETED) return;
mime = gnome_vfs_get_mime_type (details->dest);
- g_return_if_fail (mime != NULL);
+ if (mime == NULL) return;
app = gnome_vfs_mime_get_default_application (mime);
if (app)
@@ -1084,6 +1084,8 @@ open_selection_foreach (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *ite
ephy_file_launch_application (app->command,
details->dest,
app->requires_terminal);
+
+ gnome_vfs_mime_application_free(app);
}
else
{