Merge "mtp: fix double free of thumbnail data" into nyc-dev am: 914bc14e82
am: f9e16c9899
Change-Id: Id780ff2bfb2f3881cbf33032971ed3b397a2fcde
This commit is contained in:
@@ -948,6 +948,7 @@ void* MyMtpDatabase::getThumbnail(MtpObjectHandle handle, size_t& outThumbSize)
|
|||||||
outThumbSize = image_data.thumbnail.length;
|
outThumbSize = image_data.thumbnail.length;
|
||||||
} else {
|
} else {
|
||||||
free(result);
|
free(result);
|
||||||
|
result = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user