Skip to content

Commit

Permalink
fix: not working JSCoreGTK proxy_execute_* after global reinitialization
Browse files Browse the repository at this point in the history
  • Loading branch information
sergio-nsk authored and nmoinvaz committed Dec 25, 2024
1 parent 7c9d8c6 commit 6444b36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions execute_jscore.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,9 @@ bool proxy_execute_jscore_global_cleanup(void) {
dlclose(g_proxy_execute_jscore.module);

memset(&g_proxy_execute_jscore, 0, sizeof(g_proxy_execute_jscore));

static const pthread_once_t proxy_execute_jscore_init_flag = PTHREAD_ONCE_INIT;
memcpy(&g_proxy_execute_jscore_init_flag, &proxy_execute_jscore_init_flag, sizeof(proxy_execute_jscore_init_flag));
return true;
}

Expand Down

0 comments on commit 6444b36

Please sign in to comment.