diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-08 21:56:45 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-08 21:56:45 +0000 |
commit | 7e61d4900d9b99958f863cd2f56fc3cd4e800600 (patch) | |
tree | 2ea789738356137ee8bf0dac0634b4ce7d27c7b6 /plugins/TopToolBar/main.cpp | |
parent | 56984a95c2514df3a96849d790a3e1bc5b3de52a (diff) |
memory crash fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@367 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/main.cpp')
-rw-r--r-- | plugins/TopToolBar/main.cpp | 8 |
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;
|