From 3e83992d52dcde84723dc31129546d4e78877f15 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Tue, 1 Sep 2009 15:51:15 +0200 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c index fca24dae..c35b31eb 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; -- 2.39.2