Merge "modules: camera: make Metadata a delete-able object"

This commit is contained in:
Alex Ray 2013-07-09 19:18:35 +00:00 committed by Android (Google) Code Review
commit ef079d59d1

View file

@ -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)