diff options
author | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2011-09-28 15:30:50 -0300 |
---|---|---|
committer | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2011-09-30 10:50:31 -0300 |
commit | 3cdbd10b8b00058275f2042166cb99b51468717f (patch) | |
tree | 7f110d9e7b17d99314610f8ff270242f2e0eda65 /qt4/tests | |
parent | 9b83909fe65798690d3a22ce992fea11f7bbd9e2 (diff) |
contacts-info test: Fix double free.
Diffstat (limited to 'qt4/tests')
-rw-r--r-- | qt4/tests/dbus/contacts-info.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/qt4/tests/dbus/contacts-info.cpp b/qt4/tests/dbus/contacts-info.cpp index daed0cda8..2f46cdd94 100644 --- a/qt4/tests/dbus/contacts-info.cpp +++ b/qt4/tests/dbus/contacts-info.cpp @@ -183,10 +183,8 @@ void TestContactsInfo::testInfo() QCOMPARE(pci->infoFields().allFields()[0].fieldName, QLatin1String("n")); QCOMPARE(pci->infoFields().allFields()[0].fieldValue[0], QLatin1String("Foo")); - g_boxed_free (TP_ARRAY_TYPE_CONTACT_INFO_FIELD_LIST, info_1); - g_ptr_array_unref (info_1); - g_boxed_free (TP_ARRAY_TYPE_CONTACT_INFO_FIELD_LIST, info_2); - g_ptr_array_unref (info_2); + g_boxed_free(TP_ARRAY_TYPE_CONTACT_INFO_FIELD_LIST, info_1); + g_boxed_free(TP_ARRAY_TYPE_CONTACT_INFO_FIELD_LIST, info_2); } void TestContactsInfo::cleanup() |