diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2011-10-14 14:07:17 -0400 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2011-10-14 17:49:49 -0400 |
commit | 5d28629e4324a370b383897716cc760cc1e9f1be (patch) | |
tree | fb1f40f15e06fd77f16a0da6abb3284e41e8d822 /telepathy-logger/text-channel.c | |
parent | 589eac5c37a2dc5020e18fc9197cfcb2e5934f25 (diff) | |
download | telepathy-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.c | 4 |
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); |