aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-main-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy-main-window.c')
-rw-r--r--src/empathy-main-window.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index a120d5891..9cc65ba61 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);