diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-08-21 13:33:23 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-08-21 13:33:23 +0200 |
commit | 695c1fb31c51784c0d04b222ef6683dda1df4def (patch) | |
tree | 4a43eab99d0fe3776872e4b73436ee8a412b9cbe /src | |
parent | 7272017b49f5ee3aa9033e12271986cd5534f1c1 (diff) | |
parent | 2f2630580f5e473f0748fcedd52164c350285a00 (diff) | |
download | ayatana-indicator-messages-695c1fb31c51784c0d04b222ef6683dda1df4def.tar.gz ayatana-indicator-messages-695c1fb31c51784c0d04b222ef6683dda1df4def.tar.bz2 ayatana-indicator-messages-695c1fb31c51784c0d04b222ef6683dda1df4def.zip |
Merge lp:~charlesk/indicator-messages/towards-q-redesign
Plugs several memory leaks in app-section.c
Diffstat (limited to 'src')
-rw-r--r-- | src/app-section.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/app-section.c b/src/app-section.c index 70bf21e..1574892 100644 --- a/src/app-section.c +++ b/src/app-section.c @@ -233,6 +233,8 @@ app_section_dispose (GObject *object) g_clear_object (&priv->source_actions); } + g_clear_object (&priv->muxer); + g_clear_object (&priv->source_menu); g_clear_object (&priv->ids); g_clear_object (&priv->appinfo); @@ -350,6 +352,7 @@ app_section_set_app_info (AppSection *self, action = g_simple_action_new (nicks[i], NULL); g_signal_connect(action, "activate", G_CALLBACK (nick_activate_cb), self); g_simple_action_group_insert (priv->static_shortcuts, G_ACTION (action)); + g_object_unref (action); g_menu_append (priv->menu, name, nicks[i]); @@ -384,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); } } |