[empathy] main_window_flash_foreach: fix FolksIndividual leak
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] main_window_flash_foreach: fix FolksIndividual leak
- Date: Tue, 7 Jun 2011 13:18:51 +0000 (UTC)
commit f2ee2965a27340b7701c36230eb8ef0e7ecc6e8f
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Jun 7 15:13:54 2011 +0200
main_window_flash_foreach: fix FolksIndividual leak
src/empathy-main-window.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index a120d58..9cc65ba 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -211,10 +211,8 @@ main_window_flash_foreach (GtkTreeModel *model,
return FALSE;
contact = empathy_contact_dup_from_folks_individual (individual);
- if (contact != data->event->contact) {
- tp_clear_object (&contact);
- return FALSE;
- }
+ if (contact != data->event->contact)
+ goto out;
if (data->on) {
icon_name = data->event->icon_name;
@@ -243,6 +241,7 @@ main_window_flash_foreach (GtkTreeModel *model,
gtk_tree_path_free (parent_path);
}
+out:
g_object_unref (individual);
tp_clear_object (&contact);
tp_clear_object (&pixbuf);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]