diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-06-07 21:13:54 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-06-07 21:18:36 +0800 |
commit | f2ee2965a27340b7701c36230eb8ef0e7ecc6e8f (patch) | |
tree | 6f21fc56e7e487910a3bba6eeacad776b7cccace | |
parent | 5ad816894a9a08c52298a84a183f6d853654f913 (diff) | |
download | gsoc2013-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
-rw-r--r-- | 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 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); |