[evolution-data-server/openismus-work] EBookQuery: avoid leaking locale string



commit 21d277d7a3c5dee098bfdf3b2bfb2e1a7ed7d872
Author: Patrick Ohly <patrick ohly intel com>
Date:   Thu Mar 28 06:27:42 2013 -0700

    EBookQuery: avoid leaking locale string
    
    The following commit added a new string to EBookQuery without
    freeing it:
    
    commit 7a58fad73c0f627a0ceae010f179908200e5f0b8
    Author: Mathias Hasselmann <mathias openismus com>
    Date:   Wed Feb 6 19:16:45 2013 +0100
    
        libebook: Add client locale to queries

 addressbook/libebook-contacts/e-book-query.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/libebook-contacts/e-book-query.c b/addressbook/libebook-contacts/e-book-query.c
index c26582e..f8841e1 100644
--- a/addressbook/libebook-contacts/e-book-query.c
+++ b/addressbook/libebook-contacts/e-book-query.c
@@ -375,6 +375,7 @@ e_book_query_unref (EBookQuery *q)
        case E_BOOK_QUERY_TYPE_FIELD_TEST:
                g_free (q->query.field_test.field_name);
                g_free (q->query.field_test.value);
+               g_free (q->query.field_test.locale);
                break;
 
        case E_BOOK_QUERY_TYPE_FIELD_EXISTS:


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