summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@novell.com>2008-07-19 18:55:04 +0000
committerHans Petter <hansp@src.gnome.org>2008-07-19 18:55:04 +0000
commit2709713e68c872797792e2c9f9472e684131df12 (patch)
tree2cca268c5fae6d68d9dd804660c7e62405ac96f7
parent0d9a31f17dbc1df7a7341442da38a8b101c20459 (diff)
downloadgvfs-2709713e68c872797792e2c9f9472e684131df12.tar.gz
Don't leak D-Bus messages.
2008-07-19 Hans Petter Jansson <hpj@novell.com> * client/gdaemonfile.c (g_daemon_file_set_attribute): Don't leak D-Bus messages. svn path=/trunk/; revision=1823
-rw-r--r--ChangeLog5
-rw-r--r--client/gdaemonfile.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 55bfb8c1..6b9e6dad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-19 Hans Petter Jansson <hpj@novell.com>
+
+ * client/gdaemonfile.c (g_daemon_file_set_attribute): Don't leak
+ D-Bus messages.
+
2008-07-18 Hans Petter Jansson <hpj@novell.com>
* client/gvfsfusedaemon.c (vfs_open)
diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c
index e9014919..b5477db4 100644
--- a/client/gdaemonfile.c
+++ b/client/gdaemonfile.c
@@ -1892,6 +1892,8 @@ g_daemon_file_set_attribute (GFile *file,
NULL, NULL, NULL,
cancellable, &my_error);
+ dbus_message_unref (message);
+
if (reply == NULL)
{
if (g_error_matches (my_error, G_VFS_ERROR, G_VFS_ERROR_RETRY))