1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Android: Voice typing: Fix memory leak (#12402)

This commit is contained in:
Henry Heino
2025-06-07 04:56:26 -07:00
committed by GitHub
parent f5e751c27a
commit 70e7d8f820

View File

@@ -75,7 +75,7 @@ extern "C"
JNIEXPORT void JNICALL
Java_net_cozic_joplin_audio_NativeWhisperLib_00024Companion_free(JNIEnv *env, jobject thiz,
jlong pointer) {
std::free(reinterpret_cast<WhisperSession *>(pointer));
delete reinterpret_cast<WhisperSession *>(pointer);
}
extern "C"