summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TopToolBar/main.cpp')
-rw-r--r--plugins/TopToolBar/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TopToolBar/main.cpp b/plugins/TopToolBar/main.cpp
index df441b85cb..18d6584e9e 100644
--- a/plugins/TopToolBar/main.cpp
+++ b/plugins/TopToolBar/main.cpp
@@ -137,14 +137,14 @@ int DBLoadButtonSettings(int butpos)
Buttons[butpos].dwFlags |= TTBBF_VISIBLE;
Buttons[butpos].UserDefinedbmDown = DBGetStringT(0, TTB_OPTDIR, AS(buf, Buttons[butpos].name, "_BmpDown"));
- if ((Buttons[butpos].UserDefinedbmDown != NULL) && *Buttons[butpos].UserDefinedbmDown == 0) {
- free(Buttons[butpos].UserDefinedbmDown);
+ if ( Buttons[butpos].UserDefinedbmDown != NULL && Buttons[butpos].UserDefinedbmDown[0] == 0) {
+ mir_free(Buttons[butpos].UserDefinedbmDown);
Buttons[butpos].UserDefinedbmDown = NULL;
}
Buttons[butpos].UserDefinedbmUp = DBGetStringT(0, TTB_OPTDIR, AS(buf, Buttons[butpos].name, "_BmpUp"));
- if ((Buttons[butpos].UserDefinedbmUp != NULL) && *Buttons[butpos].UserDefinedbmUp == 0) {
- free(Buttons[butpos].UserDefinedbmUp);
+ if ( Buttons[butpos].UserDefinedbmUp != NULL && Buttons[butpos].UserDefinedbmUp[0] == 0) {
+ mir_free(Buttons[butpos].UserDefinedbmUp);
Buttons[butpos].UserDefinedbmUp = NULL;
}
return 0;