aiMetaData: introduce aiMetaData::Dealloc.

pull/1302/head
Kim Kulling 2017-05-25 22:35:27 +02:00
parent fb33199d99
commit f3407ef804
2 changed files with 9 additions and 2 deletions

View File

@ -134,7 +134,6 @@ struct aiMetadata {
// empty
}
/**
* @brief The destructor.
*/
@ -199,6 +198,14 @@ struct aiMetadata {
return data;
}
/**
* @brief Deallocates property fields + keys.
*/
static inline
void Dealloc( aiMetadata *metadata ) {
delete metadata;
}
template<typename T>
inline void Add(const std::string& key, const T& value)
{

View File

@ -55,7 +55,7 @@ protected:
}
virtual void TearDown() {
delete m_data;
aiMetadata::Dealloc( m_data );
}
};