зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1160428 - Fix theoretical take picture memory leak uncovered by coverity. r=aosmond
This commit is contained in:
Родитель
3529c99ba1
Коммит
d0b4507ce1
|
@ -365,9 +365,16 @@ DOMCameraControlListener::OnTakePictureComplete(const uint8_t* aData, uint32_t a
|
|||
static_cast<uint64_t>(mLength),
|
||||
mMimeType);
|
||||
aDOMCameraControl->OnTakePictureComplete(picture);
|
||||
mData = NULL;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual
|
||||
~Callback()
|
||||
{
|
||||
free(mData);
|
||||
}
|
||||
|
||||
uint8_t* mData;
|
||||
uint32_t mLength;
|
||||
nsString mMimeType;
|
||||
|
|
Загрузка…
Ссылка в новой задаче