mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1160428 - Fix theoretical take picture memory leak uncovered by coverity. r=aosmond
This commit is contained in:
parent
afaaf613b7
commit
a347201a38
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user