From 9813d27b1333dea82832d918b1c8dbca3759fb2c Mon Sep 17 00:00:00 2001 From: yu-zify <99244012+yu-zify@users.noreply.github.com> Date: Sat, 8 Jun 2024 12:10:52 +0800 Subject: [PATCH] Update android.c --- app/src/main/cpp/lorie/android.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/lorie/android.c b/app/src/main/cpp/lorie/android.c index ec97cbc53..435a073e3 100644 --- a/app/src/main/cpp/lorie/android.c +++ b/app/src/main/cpp/lorie/android.c @@ -251,9 +251,9 @@ Java_com_termux_x11_CmdEntryPoint_start(JNIEnv *env, unused jclass cls, jobjectA JNIEXPORT void JNICALL Java_com_termux_x11_CmdEntryPoint_windowChanged(JNIEnv *env, unused jobject cls, jobject surface, jstring jname) { - /* const char *name = !jname ? NULL : (*env)->GetStringUTFChars(env, jname, JNI_FALSE); + const char *name = !jname ? NULL : (*env)->GetStringUTFChars(env, jname, JNI_FALSE); QueueWorkProc(lorieChangeScreenName, NULL, name ? strndup(name, 1024) : strdup("screen")); - if (name) + /* if (name) (*env)->ReleaseStringUTFChars(env, jname, name); */ QueueWorkProc(lorieChangeWindow, NULL, surface ? (*env)->NewGlobalRef(env, surface) : NULL);