[evolution-data-server] Bug #728917 - Crashes on start with SIGSEGV in data_book_factory_list_books



commit bc3a5c95d416744f087096fe2febb19887f6e280
Author: Fabiano Fidêncio <fidencio redhat com>
Date:   Fri Apr 25 10:17:49 2014 +0200

    Bug #728917 - Crashes on start with SIGSEGV in data_book_factory_list_books

 addressbook/libedata-book/e-data-book-factory.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libedata-book/e-data-book-factory.c b/addressbook/libedata-book/e-data-book-factory.c
index aac68d8..ded2432 100644
--- a/addressbook/libedata-book/e-data-book-factory.c
+++ b/addressbook/libedata-book/e-data-book-factory.c
@@ -97,7 +97,7 @@ data_book_factory_list_books (EDataBookFactory *factory)
 
        backends = e_data_factory_list_backends (E_DATA_FACTORY (factory));
 
-       for (l = backends; l != NULL; l = g_slist_next (l)); {
+       for (l = backends; l != NULL; l = g_slist_next (l)) {
                EBookBackend *backend = l->data;
                EDataBook *book = e_book_backend_ref_data_book (backend);
 
@@ -107,6 +107,8 @@ data_book_factory_list_books (EDataBookFactory *factory)
                        g_object_unref (book);
        }
 
+       g_slist_free_full (backends, g_object_unref);
+
        return books;
 }
 


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