From 22c9ed415377890f7d12f6b3bcd5e575b026a808 Mon Sep 17 00:00:00 2001 From: philmoz Date: Sun, 6 Oct 2024 12:32:52 +1100 Subject: [PATCH] fix(color): incorrect method called to free a widget options array (#5593) --- radio/src/lua/widgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/lua/widgets.cpp b/radio/src/lua/widgets.cpp index 3ed67d93c..5338e975e 100644 --- a/radio/src/lua/widgets.cpp +++ b/radio/src/lua/widgets.cpp @@ -205,7 +205,7 @@ ZoneOption *createOptionsArray(int reference, uint8_t maxOptions) else { TRACE("error in theme/widget options"); - free(options); + delete[] options; return NULL; } UNPROTECT_LUA();