Skip to content

Commit 2b1d43a

Browse files
committed
Fix dlclose issue on Arch Linux
1 parent cfdb972 commit 2b1d43a

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

src/webui.c

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12633,18 +12633,24 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) {
1263312633

1263412634
if (libwebkit) {
1263512635

12636-
#ifdef WEBUI_LOG
12637-
_webui_log_debug("[Core]\t\t_webui_wv_free() -> Unload WebKit\n");
12638-
#endif
12639-
dlclose(libwebkit);
12636+
// #ifdef WEBUI_LOG
12637+
// _webui_log_debug("[Core]\t\t_webui_wv_free() -> Unload WebKit\n");
12638+
// #endif
12639+
// dlclose(libwebkit);
12640+
12641+
// Now, we relies on the OS to unload the shared libraries
12642+
// when the application ends.
1264012643
}
1264112644

1264212645
if (libgtk) {
1264312646

12644-
#ifdef WEBUI_LOG
12645-
_webui_log_debug("[Core]\t\t_webui_wv_free() -> Unload GTK\n");
12646-
#endif
12647-
dlclose(libgtk);
12647+
// #ifdef WEBUI_LOG
12648+
// _webui_log_debug("[Core]\t\t_webui_wv_free() -> Unload GTK\n");
12649+
// #endif
12650+
// dlclose(libgtk);
12651+
12652+
// Now, we relies on the OS to unload the shared libraries
12653+
// when the application ends.
1264812654
}
1264912655

1265012656
_webui.is_webview = false;

0 commit comments

Comments
 (0)