Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 4408e2f

Browse files
committed
[android] - delete local ref pixel buffer when converting Image.java to core
1 parent 4152c30 commit 4408e2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/android/src/map/image.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ mbgl::style::Image Image::getImage(jni::JNIEnv& env, jni::Object<Image> image) {
2929
}
3030

3131
jni::GetArrayRegion(env, *pixels, 0, size, reinterpret_cast<jbyte*>(premultipliedImage.data.get()));
32-
32+
jni::DeleteLocalRef(env, pixels);
3333
return mbgl::style::Image {name, std::move(premultipliedImage), pixelRatio};
3434
}
3535

0 commit comments

Comments
 (0)