[empathy] Remove g_object_ref from empathy_dispatch_operation_get_tp_connection. Fixes #579780
- From: Jonny Lamb <jonnylamb src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Remove g_object_ref from empathy_dispatch_operation_get_tp_connection. Fixes #579780
- Date: Wed, 22 Apr 2009 07:45:54 -0400 (EDT)
commit 5f6a57093aa93d8bcf4cee001adacaa91d4198c7
Author: Jonny Lamb <jonny lamb collabora co uk>
Date: Wed Apr 22 12:12:19 2009 +0100
Remove g_object_ref from empathy_dispatch_operation_get_tp_connection. Fixes #579780
Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
---
libempathy/empathy-dispatch-operation.c | 2 +-
libempathy/empathy-dispatcher.c | 2 --
2 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/libempathy/empathy-dispatch-operation.c b/libempathy/empathy-dispatch-operation.c
index 8f6fffe..cfe1111 100644
--- a/libempathy/empathy-dispatch-operation.c
+++ b/libempathy/empathy-dispatch-operation.c
@@ -587,7 +587,7 @@ empathy_dispatch_operation_get_tp_connection (
priv = GET_PRIV (operation);
- return g_object_ref (priv->connection);
+ return priv->connection;
}
TpChannel *
diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c
index 5245bd2..c8a0f9e 100644
--- a/libempathy/empathy-dispatcher.c
+++ b/libempathy/empathy-dispatcher.c
@@ -353,7 +353,6 @@ dispatch_operation_claimed_cb (EmpathyDispatchOperation *operation,
connection = empathy_dispatch_operation_get_tp_connection (operation);
cd = g_hash_table_lookup (priv->connections, connection);
g_assert (cd != NULL);
- g_object_unref (G_OBJECT (connection));
object_path = empathy_dispatch_operation_get_object_path (operation);
@@ -397,7 +396,6 @@ dispatch_operation_ready_cb (EmpathyDispatchOperation *operation,
connection = empathy_dispatch_operation_get_tp_connection (operation);
cd = g_hash_table_lookup (priv->connections, connection);
g_assert (cd != NULL);
- g_object_unref (G_OBJECT (connection));
g_object_ref (operation);
g_object_ref (dispatcher);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]