]> git.0d.be Git - empathy.git/commitdiff
Be sure that FindChannelRequest has a ref to the Dispatcher
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 1 Sep 2009 13:51:15 +0000 (15:51 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 1 Sep 2009 14:49:39 +0000 (16:49 +0200)
It has to own a reference, as it will unref when free-ing the struct.

libempathy/empathy-dispatcher.c

index fca24daeb0094d9dc8d5ff7b60e16257fc58a132..c35b31eb888da975d8a29bff644cae24c8994886 100644 (file)
@@ -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;