Bug 730521 - Fix memory leak and needless memory allocation. r=ajuma

This commit is contained in:
Benoit Girard
2012-02-24 21:51:14 -05:00
parent 776aa5ad83
commit 623e14f95b

View File

@@ -1171,7 +1171,7 @@ nsWindow::OnDraw(AndroidGeckoEvent *ae)
event.region = tileRect;
#endif
static unsigned char *bits2 = new unsigned char[32 * 32 * 2];
static unsigned char bits2[32 * 32 * 2];
nsRefPtr<gfxImageSurface> targetSurface =
new gfxImageSurface(bits2, gfxIntSize(32, 32), 32 * 2,
gfxASurface::ImageFormatRGB16_565);