aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2013-04-19 13:49:32 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2013-04-19 13:49:32 +0200
commitf88266a60437836f325b34fe125b93cb1e8bec3d (patch)
tree1b49363c81fbc3937bb7330839dd22798ec4ef7d
parent7f0c703a70b02b7c7724abb36d3bc1be8b613521 (diff)
downloadlibayatana-indicator-f88266a60437836f325b34fe125b93cb1e8bec3d.tar.gz
libayatana-indicator-f88266a60437836f325b34fe125b93cb1e8bec3d.tar.bz2
libayatana-indicator-f88266a60437836f325b34fe125b93cb1e8bec3d.zip
IndicatorDesktopShortcuts: some code cleanup
-rw-r--r--libindicator/indicator-desktop-shortcuts.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libindicator/indicator-desktop-shortcuts.c b/libindicator/indicator-desktop-shortcuts.c
index 41a2d3e..740d7e1 100644
--- a/libindicator/indicator-desktop-shortcuts.c
+++ b/libindicator/indicator-desktop-shortcuts.c
@@ -649,9 +649,7 @@ indicator_desktop_shortcuts_nick_exec_with_context (IndicatorDesktopShortcuts *
if (error != NULL) {
g_warning("Unable to launch file from nick '%s': %s", nick, error->message);
- g_error_free(error);
- g_object_unref(appinfo);
- return FALSE;
+ g_clear_error(&error);
}
g_object_unref(appinfo);