[empathy] Be sure that FindChannelRequest has a ref to the Dispatcher
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] Be sure that FindChannelRequest has a ref to the Dispatcher
- Date: Tue, 1 Sep 2009 14:50:35 +0000 (UTC)
commit 3e83992d52dcde84723dc31129546d4e78877f15
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Sep 1 15:51:15 2009 +0200
Be sure that FindChannelRequest has a ref to the Dispatcher
It has to own a reference, as it will unref when free-ing the struct.
libempathy/empathy-dispatcher.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c
index fca24da..c35b31e 100644
--- a/libempathy/empathy-dispatcher.c
+++ b/libempathy/empathy-dispatcher.c
@@ -1826,7 +1826,7 @@ empathy_dispatcher_find_requestable_channel_classes_async
/* append another request for this connection */
request = g_slice_new0 (FindChannelRequest);
- request->dispatcher = dispatcher;
+ request->dispatcher = g_object_ref (dispatcher);
request->channel_type = g_strdup (channel_type);
request->handle_type = handle_type;
request->connection = connection;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]