Skip to content

Commit

Permalink
call voidMethod for on_destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
CedNaru committed May 16, 2024
1 parent f92ff71 commit ef2b2e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jvm_wrapper/registration/kt_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ KtObject::KtObject(jni::Env& p_env, jni::JObject p_wrapped, bool p_is_ref) : Jvm
KtObject::~KtObject() {
if (is_ref) { return; }
jni::Env env {jni::Jvm::current_env()};
wrapped.call_object_method(env, ON_DESTROY);
wrapped.call_void_method(env, ON_DESTROY);
}

0 comments on commit ef2b2e5

Please sign in to comment.