From e96e14d8e60244034cf2e2455771c49943e77814 Mon Sep 17 00:00:00 2001 From: riccardom Date: Sat, 18 Jul 2009 13:26:04 +0000 Subject: [PATCH] =?UTF-8?q?Shut=20up=20gcc's=20deprecated=20conversion=20f?= =?UTF-8?q?rom=20string=20constant=20to=20=E2=80=98gchar*=E2=80=99=20warni?= =?UTF-8?q?ng.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- desmume/src/gtk/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desmume/src/gtk/main.cpp b/desmume/src/gtk/main.cpp index ced4d90e6..e570f7e77 100644 --- a/desmume/src/gtk/main.cpp +++ b/desmume/src/gtk/main.cpp @@ -918,7 +918,7 @@ static void OpenNdsDialog() GtkRecentData recentData; gchar *uri; memset(&recentData, 0, sizeof(GtkRecentData)); - recentData.mime_type = "application/x-nintendo-ds-rom"; + recentData.mime_type = g_strdup("application/x-nintendo-ds-rom"); recentData.app_name = (gchar *) g_get_application_name (); recentData.app_exec = g_strjoin (" ", g_get_prgname (), "%f", NULL); @@ -928,6 +928,7 @@ static void OpenNdsDialog() gtk_recent_manager_add_full (manager, uri, &recentData); g_free(uri); + g_free(recentData.app_name); g_free(recentData.app_exec); #endif gtk_action_set_sensitive(gtk_action_group_get_action(action_group, "run"), TRUE);