summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-05-29 15:09:35 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-05-29 15:09:35 +0200
commit122f428cfe103a36ffd72a54178b73ace42855c4 (patch)
tree4353a9693f519976fe27a023777c80142a5dab77
parent87bf064d5f7a8d58724fb458c44ef1bb41b96fcc (diff)
downloadtelepathy-glib-122f428cfe103a36ffd72a54178b73ace42855c4.tar.gz
media-observer: ref the channel before connecting the signal
g_object_ref() returns a gpointer so Tartan can't check if the signal we are connecting to actually exists.
-rw-r--r--examples/client/media-observer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/client/media-observer.c b/examples/client/media-observer.c
index 0fe95e53f..5e4300522 100644
--- a/examples/client/media-observer.c
+++ b/examples/client/media-observer.c
@@ -51,7 +51,9 @@ observe_channel_cb (TpSimpleObserver *self,
requested? "to": "from",
tp_channel_get_identifier (channel));
- g_signal_connect (g_object_ref (channel), "invalidated",
+ g_object_ref (channel);
+
+ g_signal_connect (channel, "invalidated",
G_CALLBACK (chan_invalidated_cb), NULL);
tp_observe_channel_context_accept (context);