summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/clistsettings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_app/src/clistsettings.cpp b/src/mir_app/src/clistsettings.cpp
index 9f2b8f6593..54d36ca38f 100644
--- a/src/mir_app/src/clistsettings.cpp
+++ b/src/mir_app/src/clistsettings.cpp
@@ -63,8 +63,8 @@ void fnCheckCacheItem(ClcCacheEntry *p)
void fnFreeCacheItem(ClcCacheEntry *p)
{
- if (p->tszName) { mir_free(p->tszName); p->tszName = NULL; }
- if (p->tszGroup) { mir_free(p->tszGroup); p->tszGroup = NULL; }
+ replaceStrT(p->tszName, NULL);
+ replaceStrT(p->tszGroup, NULL);
p->bIsHidden = -1;
}