From 0d9d3025c6869208a191a4662dfd76b3606abc22 Mon Sep 17 00:00:00 2001 From: Siegfried-Angel Gevatter Pujals Date: Tue, 24 Jan 2012 19:05:29 +0100 Subject: [PATCH] Fix mem leak introduced with my previous commit --- gtk/gtkrecentmanager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c index c3929edc59..283482db05 100644 --- a/gtk/gtkrecentmanager.c +++ b/gtk/gtkrecentmanager.c @@ -753,7 +753,7 @@ gtk_recent_manager_add_item_query_info (GObject *source_object, g_object_unref (file_info); } else - recent_data.mime_type = g_content_type_guess (g_file_get_basename (file), NULL, 0, NULL); + recent_data.mime_type = g_content_type_guess (uri, NULL, 0, NULL); recent_data.app_name = g_strdup (g_get_application_name ()); recent_data.app_exec = g_strjoin (" ", g_get_prgname (), "%u", NULL);