aboutsummaryrefslogtreecommitdiff
path: root/src/app-section.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-08-21 00:55:26 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-08-21 00:55:26 -0500
commit2f2630580f5e473f0748fcedd52164c350285a00 (patch)
tree56d424a175d18feeda667051dd2384027dc615a9 /src/app-section.c
parent19f5fdbb523167af107267c2bb28a810b5a548a2 (diff)
downloadayatana-indicator-messages-2f2630580f5e473f0748fcedd52164c350285a00.tar.gz
ayatana-indicator-messages-2f2630580f5e473f0748fcedd52164c350285a00.tar.bz2
ayatana-indicator-messages-2f2630580f5e473f0748fcedd52164c350285a00.zip
in app-section.c's activate_cb(), don't leak the GError if we can't launch
Diffstat (limited to 'src/app-section.c')
-rw-r--r--src/app-section.c6
1 files 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);
}
}