Bug 1059049 - Plug leak in BlankDecoderModule - r=cpearce

This commit is contained in:
Edwin Flores 2014-10-14 11:05:00 +13:00
parent 33392a7478
commit b8f030ed40

View File

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