[evolution-data-server/openismus-work-3-8] EDataBookCursor: fixed memory leak.



commit 145014b2a94aab922671c9ca27d2488923f7da3d
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Thu Nov 28 21:49:11 2013 +0900

    EDataBookCursor: fixed memory leak.
    
    This was forgetting to free the result list after transforming it
    for the D-Bus return.

 addressbook/libedata-book/e-data-book-cursor.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/libedata-book/e-data-book-cursor.c b/addressbook/libedata-book/e-data-book-cursor.c
index 591e995..e400d61 100644
--- a/addressbook/libedata-book/e-data-book-cursor.c
+++ b/addressbook/libedata-book/e-data-book-cursor.c
@@ -576,6 +576,7 @@ data_book_cursor_handle_step (EDBusAddressBookCursor *dbus_object,
                                strv[i++] = e_util_utf8_make_valid (vcard);
                        }
 
+                       g_slist_free_full (results, g_free);
                }
 
                e_dbus_address_book_cursor_complete_step (dbus_object,


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