diff -r b963af4aac40 -r 9452eccfc0f0 ui/common/properties.c --- a/ui/common/properties.c Fri Sep 12 17:38:39 2025 +0200 +++ b/ui/common/properties.c Sat Sep 13 19:52:18 2025 +0200 @@ -128,6 +128,7 @@ void uic_load_app_properties() { application_properties = cxHashMapCreate(cxDefaultAllocator, CX_STORE_POINTERS, 128); + application_properties->collection.simple_destructor = free; if(!ui_appname()) { // applications without name cannot load app properties @@ -202,7 +203,11 @@ } void ui_set_property(const char *name, const char *value) { - cxMapPut(application_properties, name, (char*)value); + if(value) { + cxMapRemove(application_properties, name); + } else { + cxMapPut(application_properties, name, strdup(value)); + } } const char* ui_set_default_property(const char *name, const char *value) {