From ef8832bb8035edaad77749413afc110e9b8ea01e Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 4 Jan 2012 14:53:21 +0100 Subject: Bug #665036 - Memory leaks spot in Contacts view --- modules/addressbook/e-book-shell-view-private.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules') diff --git a/modules/addressbook/e-book-shell-view-private.c b/modules/addressbook/e-book-shell-view-private.c index cb0cf60ab2..3c3b1a9a8f 100644 --- a/modules/addressbook/e-book-shell-view-private.c +++ b/modules/addressbook/e-book-shell-view-private.c @@ -95,6 +95,9 @@ book_shell_view_selection_change_foreach (gint row, e_book_shell_content_set_preview_contact (book_shell_content, contact); book_shell_view->priv->preview_index = row; + + if (contact) + g_object_unref (contact); } static void -- cgit v1.2.3