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

Commit

Permalink
[android] - remove throwing in desructor, undefined behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrun committed May 11, 2018
1 parent 10c2c30 commit 11bbde4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions platform/android/src/bitmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ class PixelGuard {
}
}
~PixelGuard() {
const int result = AndroidBitmap_unlockPixels(&env, jni::Unwrap(*bitmap));
if (result != ANDROID_BITMAP_RESULT_SUCCESS) {
throw std::runtime_error("bitmap decoding: could not unlock pixels");
}
AndroidBitmap_unlockPixels(&env, jni::Unwrap(*bitmap));
}

auto* get() {
Expand Down

0 comments on commit 11bbde4

Please sign in to comment.