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
Родитель f7caef0932
Коммит 0ffff92e7f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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