[empathy/gnome-2-34: 45/60] event-manager: use tp_clear_object
- From: Jonny Lamb <jonnylamb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-2-34: 45/60] event-manager: use tp_clear_object
- Date: Wed, 26 Jan 2011 14:40:34 +0000 (UTC)
commit 92b15cb0cf7de53be9417f342aff4c6ae53141dd
Author: Jonny Lamb <jonnylamb gnome org>
Date: Tue Dec 14 16:33:46 2010 +0000
event-manager: use tp_clear_object
Signed-off-by: Jonny Lamb <jonnylamb gnome org>
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 2162586..92d327e 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]