[gnome-keyring/wip/gdbus: 2/9] dbus-environment: plug a memory leak
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring/wip/gdbus: 2/9] dbus-environment: plug a memory leak
- Date: Sun, 16 Nov 2014 18:52:06 +0000 (UTC)
commit 1268bc5c2d52fbcbc274e6e08c0f672d712c5b64
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Nov 9 11:21:10 2014 -0800
dbus-environment: plug a memory leak
daemon/dbus/gkd-dbus-environment.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/daemon/dbus/gkd-dbus-environment.c b/daemon/dbus/gkd-dbus-environment.c
index 11279bf..2c6a5bf 100644
--- a/daemon/dbus/gkd-dbus-environment.c
+++ b/daemon/dbus/gkd-dbus-environment.c
@@ -44,8 +44,9 @@ on_setenv_reply (GObject *source,
gpointer user_data)
{
GError *error = NULL;
+ GVariant *res;
- g_dbus_connection_call_finish (G_DBUS_CONNECTION (source), result, &error);
+ res = g_dbus_connection_call_finish (G_DBUS_CONNECTION (source), result, &error);
if (error != NULL) {
gchar *dbus_error;
@@ -58,6 +59,8 @@ on_setenv_reply (GObject *source,
g_error_free (error);
g_free (dbus_error);
}
+
+ g_clear_pointer (&res, g_variant_unref);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]