Fix the memory leak 2.1b_release accepted/tizen_2.1/20130425.035330 submit/tizen_2.1/20130424.231103
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 22 Apr 2013 04:52:47 +0000 (13:52 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 22 Apr 2013 04:52:47 +0000 (13:52 +0900)
We should destroy the query

Change-Id: I0d3bcad2bbb3b11d2e1926d878fe3a2ebf9783ac

pb-agent/bluetooth_pb_agent.c

index d86ae74..c3df5da 100644 (file)
@@ -1278,6 +1278,7 @@ static void __bluetooth_pb_get_vcards(BluetoothPbAgent *agent,
 
        if (status != CONTACTS_ERROR_NONE) {
                contacts_list_destroy(record_list, TRUE);
+               contacts_query_destroy(query);
                return;
        }