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

Commit

Permalink
[android] - delete local ref pixel buffer when converting Image.java …
Browse files Browse the repository at this point in the history
…to core
  • Loading branch information
tobrun committed Mar 2, 2018
1 parent 4152c30 commit 4408e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/android/src/map/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ mbgl::style::Image Image::getImage(jni::JNIEnv& env, jni::Object<Image> image) {
}

jni::GetArrayRegion(env, *pixels, 0, size, reinterpret_cast<jbyte*>(premultipliedImage.data.get()));

jni::DeleteLocalRef(env, pixels);
return mbgl::style::Image {name, std::move(premultipliedImage), pixelRatio};
}

Expand Down

0 comments on commit 4408e2f

Please sign in to comment.