Bug 730521 - Fix memory leak and needless memory allocation. r=ajuma
This commit is contained in:
@@ -1171,7 +1171,7 @@ nsWindow::OnDraw(AndroidGeckoEvent *ae)
|
|||||||
event.region = tileRect;
|
event.region = tileRect;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static unsigned char *bits2 = new unsigned char[32 * 32 * 2];
|
static unsigned char bits2[32 * 32 * 2];
|
||||||
nsRefPtr<gfxImageSurface> targetSurface =
|
nsRefPtr<gfxImageSurface> targetSurface =
|
||||||
new gfxImageSurface(bits2, gfxIntSize(32, 32), 32 * 2,
|
new gfxImageSurface(bits2, gfxIntSize(32, 32), 32 * 2,
|
||||||
gfxASurface::ImageFormatRGB16_565);
|
gfxASurface::ImageFormatRGB16_565);
|
||||||
|
|||||||
Reference in New Issue
Block a user