[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:
@@ -24,6 +24,11 @@ public:
|
||||
XmpProperties::registerNs(expectedFamily, expectedPrefix);
|
||||
}
|
||||
|
||||
static void TearDownTestCase()
|
||||
{
|
||||
XmpProperties::unregisterNs();
|
||||
}
|
||||
|
||||
void checkValidity(const XmpKey& key)
|
||||
{
|
||||
ASSERT_EQ(expectedKey, key.key());
|
||||
|
||||
Reference in New Issue
Block a user