From 2f2630580f5e473f0748fcedd52164c350285a00 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 21 Aug 2012 00:55:26 -0500 Subject: in app-section.c's activate_cb(), don't leak the GError if we can't launch --- src/app-section.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app-section.c b/src/app-section.c index fcb75d9..f922dca 100644 --- a/src/app-section.c +++ b/src/app-section.c @@ -387,8 +387,10 @@ activate_cb (GSimpleAction *action, GError *error = NULL; if (!g_app_info_launch (G_APP_INFO (priv->appinfo), NULL, NULL, &error)) { - g_warning("Unable to execute application for desktop file '%s'", - g_desktop_app_info_get_filename (priv->appinfo)); + g_warning("Unable to execute application for desktop file '%s': %s", + g_desktop_app_info_get_filename (priv->appinfo), + error->message); + g_error_free (error); } } -- cgit v1.2.3