diff options
author | Jonny Lamb <jonnylamb@gnome.org> | 2010-12-14 16:33:46 +0000 |
---|---|---|
committer | Jonny Lamb <jonnylamb@gnome.org> | 2010-12-14 16:33:46 +0000 |
commit | 05e14d747fd88a260996c406a938a1bfdfbaca8f (patch) | |
tree | 4971b61359ed14d81ade4ff312f2f7f0f6b77073 /src | |
parent | 483c580a8b6aa2c0b4205e3cb2c674e80abe5ba7 (diff) |
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 f657cae35..93656c3a9 100644 --- a/src/empathy-event-manager.c +++ b/src/empathy-event-manager.c @@ -166,15 +166,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); } |