[java-atk-wrapper] Fix thread reference leak
- From: Samuel Thibault <sthibaul src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] Fix thread reference leak
- Date: Sun, 13 Mar 2022 23:03:29 +0000 (UTC)
commit b5022bf047f8b62e9ad8dda6c80c475a98a9db0f
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date: Mon Mar 14 00:03:14 2022 +0100
Fix thread reference leak
jni/src/AtkWrapper.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/jni/src/AtkWrapper.c b/jni/src/AtkWrapper.c
index 4a5f049..9a06e1d 100644
--- a/jni/src/AtkWrapper.c
+++ b/jni/src/AtkWrapper.c
@@ -179,6 +179,11 @@ JNICALL Java_org_GNOME_Accessibility_AtkWrapper_loadAtkBridge(void)
JAW_DEBUG_I("Thread create failed: %s !", err->message);
g_error_free (err);
}
+ else
+ {
+ /* We won't join it */
+ g_thread_unref(thread);
+ }
}
JNIEXPORT void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]