Skip to content

Commit 94a8cfb

Browse files
committed
Fix webui_destroy issue
If any wrapper called `webui_clean()` then `webui_destroy()` the app will crash.
1 parent b10f4f6 commit 94a8cfb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/webui.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7486,6 +7486,8 @@ static void _webui_clean(void) {
74867486
_webui_mutex_destroy(&_webui.mutex_ws_process_number);
74877487
_webui_condition_destroy(&_webui.condition_wait);
74887488

7489+
_webui.initialized = false;
7490+
74897491
#ifdef WEBUI_LOG
74907492
_webui_log_debug("[Core]\t\tWebUI memory cleaned successfully\n");
74917493
#endif

0 commit comments

Comments
 (0)