Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1a04d54 authored by Chih-Chung Chang's avatar Chih-Chung Chang
Browse files

Fix 3510563: memory leak in BitmapRegionDecoder.

Change-Id: If639d5974204f18fdfd119b9fc7a762977c66f26
parent 102930a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ static jobject doBuildTileIndex(JNIEnv* env, SkStream* stream) {
        return nullObjectReturn("decoder->buildTileIndex returned false");
    }

    SkBitmapRegionDecoder *bm = new SkBitmapRegionDecoder(decoder, width, height);
    SkBitmapRegionDecoder *bm = new SkBitmapRegionDecoder(decoder, stream, width, height);

    return GraphicsJNI::createBitmapRegionDecoder(env, bm);
}