evolution-data-server/bnc-152070-eds-crash.patch

17 lines
494 B
Diff
Raw Normal View History

=== modified file 'addressbook/backends/groupwise/e-book-backend-groupwise.c'
--- addressbook/backends/groupwise/e-book-backend-groupwise.c 2007-12-18 16:36:30 +0000
+++ addressbook/backends/groupwise/e-book-backend-groupwise.c 2007-12-18 16:42:36 +0000
@@ -2421,6 +2421,11 @@
EList *views = e_book_backend_get_book_views (E_BOOK_BACKEND (ebgw));
EIterator *iter;
EDataBookView *rv = NULL;
+
+ if (!iter) {
+ g_object_unref (views);
+ return NULL;
+ }
if (!views)
return NULL;