Skip to content

Commit 09cfb56

Browse files
committed
Allow set_custom_parameters to clean old params
1 parent 5273ef3 commit 09cfb56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/webui.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,7 @@ void webui_set_custom_parameters(size_t window, char* params) {
10191019
// Always free old data to allow user to clear custom params
10201020
// by passing an empty `params`.
10211021
_webui_free_mem((void*)win->custom_parameters);
1022+
win->custom_parameters = NULL;
10221023

10231024
// Check size
10241025
size_t len = _webui_strlen(params);

0 commit comments

Comments
 (0)