aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonnylamb@gnome.org>2010-12-15 00:33:46 +0800
committerJonny Lamb <jonnylamb@gnome.org>2010-12-15 00:33:46 +0800
commit05e14d747fd88a260996c406a938a1bfdfbaca8f (patch)
tree4971b61359ed14d81ade4ff312f2f7f0f6b77073
parent483c580a8b6aa2c0b4205e3cb2c674e80abe5ba7 (diff)
downloadgsoc2013-empathy-05e14d747fd88a260996c406a938a1bfdfbaca8f.tar
gsoc2013-empathy-05e14d747fd88a260996c406a938a1bfdfbaca8f.tar.gz
gsoc2013-empathy-05e14d747fd88a260996c406a938a1bfdfbaca8f.tar.bz2
gsoc2013-empathy-05e14d747fd88a260996c406a938a1bfdfbaca8f.tar.lz
gsoc2013-empathy-05e14d747fd88a260996c406a938a1bfdfbaca8f.tar.xz
gsoc2013-empathy-05e14d747fd88a260996c406a938a1bfdfbaca8f.tar.zst
gsoc2013-empathy-05e14d747fd88a260996c406a938a1bfdfbaca8f.zip
event-manager: use tp_clear_object
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
-rw-r--r--src/empathy-event-manager.c11
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);
}