Fix a memory leak in EBookQuery with field_test.locale
authorMilan Crha <mcrha@redhat.com>
Thu, 21 Feb 2013 09:40:12 +0000 (10:40 +0100)
committerMilan Crha <mcrha@redhat.com>
Thu, 21 Feb 2013 09:42:40 +0000 (10:42 +0100)
addressbook/libebook-contacts/e-book-query.c

index 8519c1b..a45da36 100644 (file)
@@ -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: