[unit_tests] Remove a memory leak from test_XmpKey.cpp

XmpProperties::registerNs allocates strings on the heap that must be freed
manually via XmpProperties::unregisterNs().
=> do this in TearDownTestCase()
This commit is contained in:
Dan Čermák
2018-05-25 00:47:50 +02:00
parent b51b6fc52d
commit 088986e5fa
+5
View File
@@ -24,6 +24,11 @@ public:
XmpProperties::registerNs(expectedFamily, expectedPrefix);
}
static void TearDownTestCase()
{
XmpProperties::unregisterNs();
}
void checkValidity(const XmpKey& key)
{
ASSERT_EQ(expectedKey, key.key());