summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2008-08-25 13:27:36 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2008-08-25 13:27:36 +0000
commit05e2dd440809840c88e07189d8b8fe66c917949b (patch)
tree7abb3d3d6867fb3d5476d9a39f00b9553f666b1d /common
parent961c3f0d8c0f4a43782c0df25eebc85f2944913d (diff)
downloadgvfs-05e2dd440809840c88e07189d8b8fe66c917949b.tar.gz
Plug some leaks on error paths
svn path=/trunk/; revision=1907
Diffstat (limited to 'common')
-rw-r--r--common/gdbusutils.c1
-rw-r--r--common/gmountoperationdbus.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/common/gdbusutils.c b/common/gdbusutils.c
index e55016dd..c4282452 100644
--- a/common/gdbusutils.c
+++ b/common/gdbusutils.c
@@ -1348,6 +1348,7 @@ _g_dbus_connection_call_async (DBusConnection *connection,
g_set_error_literal (&data->io_error, G_IO_ERROR, G_IO_ERROR_FAILED,
"Can't open dbus connection");
g_idle_add (async_call_error_at_idle, data);
+ dbus_error_free (&derror);
return;
}
}
diff --git a/common/gmountoperationdbus.c b/common/gmountoperationdbus.c
index f3f5cf5f..1027b3a9 100644
--- a/common/gmountoperationdbus.c
+++ b/common/gmountoperationdbus.c
@@ -225,6 +225,7 @@ mount_op_ask_password (GMountOperationDBus *op_dbus,
if (!dbus_connection_send (op_dbus->connection, reply, NULL))
_g_dbus_oom ();
dbus_message_unref (reply);
+ dbus_error_free (&error);
return;
}
@@ -297,6 +298,7 @@ mount_op_ask_question (GMountOperationDBus *op_dbus,
if (!dbus_connection_send (op_dbus->connection, reply, NULL))
_g_dbus_oom ();
dbus_message_unref (reply);
+ dbus_error_free (&error);
return;
}