diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-03-05 03:15:25 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-03-05 03:15:25 +0100 |
commit | 7f059f4a2cc87e3145332d2431220f2389271e4d (patch) | |
tree | fdac1dadcd66c922f55c0199a78d76cd89ad75a3 | |
parent | f0cdd99a95848a7c2ca610083477a0a0a6bf9788 (diff) | |
download | ayatana-indicator-session-7f059f4a2cc87e3145332d2431220f2389271e4d.tar.gz ayatana-indicator-session-7f059f4a2cc87e3145332d2431220f2389271e4d.tar.bz2 ayatana-indicator-session-7f059f4a2cc87e3145332d2431220f2389271e4d.zip |
SessionMenuMgr: unref the parameters if we got an error earlier
-rw-r--r-- | src/session-menu-mgr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/session-menu-mgr.c b/src/session-menu-mgr.c index 35f1b70..9010f36 100644 --- a/src/session-menu-mgr.c +++ b/src/session-menu-mgr.c @@ -1191,6 +1191,10 @@ call_session_manager_method (const gchar * method_name, GVariant * parameters) G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); } + else if (parameters != NULL) + { + g_variant_unref (parameters); + } if (error != NULL) { |