[evolution-ews] Ref the book_view while returning. Fixes a crash with evo 3.2.
- From: Akhil Laddha <lakhil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Ref the book_view while returning. Fixes a crash with evo 3.2.
- Date: Mon, 3 Oct 2011 11:53:40 +0000 (UTC)
commit e6a75d1f5b958ead9539a878be41083c03b03c70
Author: Chenthill Palanisamy <pchenthill suse com>
Date: Mon Oct 3 17:23:07 2011 +0530
Ref the book_view while returning. Fixes a crash with evo 3.2.
src/addressbook/e-book-backend-ews-utils.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-ews-utils.c b/src/addressbook/e-book-backend-ews-utils.c
index aeb2a20..b3bb05f 100644
--- a/src/addressbook/e-book-backend-ews-utils.c
+++ b/src/addressbook/e-book-backend-ews-utils.c
@@ -88,6 +88,7 @@ get_book_view (EDataBookView *view, gpointer user_data)
{
EDataBookView **ret = (EDataBookView **) user_data;
+ e_data_book_view_ref (view);
*ret = view;
return FALSE;
@@ -95,7 +96,7 @@ get_book_view (EDataBookView *view, gpointer user_data)
EDataBookView *
e_book_backend_ews_utils_get_book_view (EBookBackend *backend)
{
- EDataBookView *ret;
+ EDataBookView *ret = NULL;
e_book_backend_foreach_view (backend, get_book_view, &ret);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]