diff options
author | Jonny Lamb <jonnylamb@gnome.org> | 2010-12-15 00:33:46 +0800 |
---|---|---|
committer | Jonny Lamb <jonnylamb@gnome.org> | 2011-01-26 21:37:32 +0800 |
commit | 92b15cb0cf7de53be9417f342aff4c6ae53141dd (patch) | |
tree | bd44ab23eed561ded032a1d2f135e0fa6644e308 /src | |
parent | fbcf062fd6e64122fe5727a8765585b0b68c1805 (diff) | |
download | gsoc2013-empathy-92b15cb0cf7de53be9417f342aff4c6ae53141dd.tar gsoc2013-empathy-92b15cb0cf7de53be9417f342aff4c6ae53141dd.tar.gz gsoc2013-empathy-92b15cb0cf7de53be9417f342aff4c6ae53141dd.tar.bz2 gsoc2013-empathy-92b15cb0cf7de53be9417f342aff4c6ae53141dd.tar.lz gsoc2013-empathy-92b15cb0cf7de53be9417f342aff4c6ae53141dd.tar.xz gsoc2013-empathy-92b15cb0cf7de53be9417f342aff4c6ae53141dd.tar.zst gsoc2013-empathy-92b15cb0cf7de53be9417f342aff4c6ae53141dd.zip |
event-manager: use tp_clear_object
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-event-manager.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c index 21625861b..92d327e27 100644 --- a/src/empathy-event-manager.c +++ b/src/empathy-event-manager.c @@ -163,15 +163,8 @@ event_free (EventPriv *event) if (event->autoremove_timeout_id != 0) g_source_remove (event->autoremove_timeout_id); - if (event->public.contact) - { - g_object_unref (event->public.contact); - } - - if (event->public.account) - { - g_object_unref (event->public.account); - } + tp_clear_object (&(event->public.contact)); + tp_clear_object (&(event->public.account)); g_slice_free (EventPriv, event); } |