mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
Bug 1059049 - Plug leak in BlankDecoderModule - r=cpearce
This commit is contained in:
parent
33392a7478
commit
b8f030ed40
@ -109,7 +109,7 @@ public:
|
||||
// with a U and V plane that are half the size of the Y plane, i.e 8 bit,
|
||||
// 2x2 subsampled. Have the data pointers of each frame point to the
|
||||
// first plane, they'll always be zero'd memory anyway.
|
||||
uint8_t* frame = new uint8_t[mFrameWidth * mFrameHeight];
|
||||
nsAutoArrayPtr<uint8_t> frame(new uint8_t[mFrameWidth * mFrameHeight]);
|
||||
memset(frame, 0, mFrameWidth * mFrameHeight);
|
||||
VideoData::YCbCrBuffer buffer;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user