Skip to content

Commit

Permalink
Fix void method call
Browse files Browse the repository at this point in the history
  • Loading branch information
chippmann committed May 16, 2024
1 parent f92ff71 commit 0c0ed59
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 0c0ed59

Please sign in to comment.