Merge "modules: camera: make Metadata a delete-able object"
This commit is contained in:
commit
ef079d59d1
1 changed files with 10 additions and 0 deletions
|
@ -43,8 +43,18 @@ Metadata::Metadata()
|
|||
|
||||
Metadata::~Metadata()
|
||||
{
|
||||
Entry *current = mHead;
|
||||
|
||||
while (current != NULL) {
|
||||
Entry *tmp = current;
|
||||
current = current->mNext;
|
||||
delete tmp;
|
||||
}
|
||||
|
||||
if (mGenerated != NULL)
|
||||
free_camera_metadata(mGenerated);
|
||||
|
||||
pthread_mutex_destroy(&mMutex);
|
||||
}
|
||||
|
||||
Metadata::Metadata(uint8_t mode, uint8_t intent)
|
||||
|
|
Loading…
Reference in a new issue