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

Commit 2498b4b8 authored by Wei-Ta Chen's avatar Wei-Ta Chen Committed by Android (Google) Code Review
Browse files

Merge "Fix 3510563: memory leak in BitmapRegionDecoder." into honeycomb-mr1

parents 54fe5856 b1a04d54
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);
}