summaryrefslogtreecommitdiff
path: root/telepathy-logger/text-channel.c
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2011-10-14 14:07:17 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2011-10-14 17:49:49 -0400
commit5d28629e4324a370b383897716cc760cc1e9f1be (patch)
treefb1f40f15e06fd77f16a0da6abb3284e41e8d822 /telepathy-logger/text-channel.c
parent589eac5c37a2dc5020e18fc9197cfcb2e5934f25 (diff)
downloadtelepathy-logger-5d28629e4324a370b383897716cc760cc1e9f1be.tar.gz
Fix observer singleton and select features
Diffstat (limited to 'telepathy-logger/text-channel.c')
-rw-r--r--telepathy-logger/text-channel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/telepathy-logger/text-channel.c b/telepathy-logger/text-channel.c
index 2eba427..9761575 100644
--- a/telepathy-logger/text-channel.c
+++ b/telepathy-logger/text-channel.c
@@ -287,7 +287,9 @@ on_channel_invalidated_cb (TpProxy *proxy,
gpointer user_data)
{
TplChannel *tpl_chan = TPL_CHANNEL (user_data);
- TplObserver *observer = _tpl_observer_new ();
+ TplObserver *observer = _tpl_observer_dup (NULL);
+
+ g_return_if_fail (observer);
PATH_DEBUG (tpl_chan, "%s #%d %s",
g_quark_to_string (domain), code, message);