[evolution-data-server/email-factory] Bug #525565 - Crash in find_book_by_contact at e-name-selector-entry.c (cherry picked from commit 9b



commit 399909027ecf0a2c667ddd278ab3be76cb01a3ed
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jan 11 14:35:55 2011 +0100

    Bug #525565 - Crash in find_book_by_contact at e-name-selector-entry.c
    (cherry picked from commit 9b014401e787fdd2d95abdf23a8568408ea96d17)

 libedataserverui/e-name-selector-entry.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libedataserverui/e-name-selector-entry.c b/libedataserverui/e-name-selector-entry.c
index 39e1d26..6d83b11 100644
--- a/libedataserverui/e-name-selector-entry.c
+++ b/libedataserverui/e-name-selector-entry.c
@@ -2282,7 +2282,7 @@ find_book_by_contact (GList *books, const gchar *contact_uid)
 
 	for (l = books; l; l = g_list_next (l)) {
 		EBook    *book = l->data;
-		EContact *contact;
+		EContact *contact = NULL;
 		gboolean  result;
 
 		result = e_book_get_contact (book, contact_uid, &contact, NULL);
@@ -2332,7 +2332,6 @@ editor_closed_cb (GtkObject *editor, gpointer data)
 
 	g_free (contact_uid);
 	g_object_unref (contact);
-	g_object_unref (editor);
 	g_object_unref (name_selector_entry);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]