aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-06-07 21:13:54 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-06-07 21:18:36 +0800
commitf2ee2965a27340b7701c36230eb8ef0e7ecc6e8f (patch)
tree6f21fc56e7e487910a3bba6eeacad776b7cccace /src
parent5ad816894a9a08c52298a84a183f6d853654f913 (diff)
downloadgsoc2013-empathy-f2ee2965a27340b7701c36230eb8ef0e7ecc6e8f.tar
gsoc2013-empathy-f2ee2965a27340b7701c36230eb8ef0e7ecc6e8f.tar.gz
gsoc2013-empathy-f2ee2965a27340b7701c36230eb8ef0e7ecc6e8f.tar.bz2
gsoc2013-empathy-f2ee2965a27340b7701c36230eb8ef0e7ecc6e8f.tar.lz
gsoc2013-empathy-f2ee2965a27340b7701c36230eb8ef0e7ecc6e8f.tar.xz
gsoc2013-empathy-f2ee2965a27340b7701c36230eb8ef0e7ecc6e8f.tar.zst
gsoc2013-empathy-f2ee2965a27340b7701c36230eb8ef0e7ecc6e8f.zip
main_window_flash_foreach: fix FolksIndividual leak
Diffstat (limited to 'src')
-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);