fix crash on context-unref due to typo

this issue is older, however, by the explicit unref() call now more visible.
but also in the past, this could have led to random crashes
after account switching.
This commit is contained in:
B. Petersen
2020-05-26 00:02:47 +02:00
parent 1d8397adc9
commit 47f7ceb986
+1 -1
View File
@@ -198,7 +198,7 @@ JNIEXPORT jlong Java_com_b44t_messenger_DcContext_createContextCPtr(JNIEnv *env,
}
JNIEXPORT void Java_com_b44t_messenger_DcContact_unrefContextCPtr(JNIEnv *env, jobject obj)
JNIEXPORT void Java_com_b44t_messenger_DcContext_unrefContextCPtr(JNIEnv *env, jobject obj)
{
dc_context_unref(get_dc_context(env, obj));
}