summaryrefslogtreecommitdiff
path: root/plugins/Alarms
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-05 17:58:27 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-05 17:58:27 +0000
commit81dc8462ddae0555821a6093bda8a67fe6bb504e (patch)
tree60f99029ff89807aa5003406517dd7d322444daa /plugins/Alarms
parent245bfdb197e844f272b2cc42ded21a49d6aed779 (diff)
memory releasing fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@2210 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Alarms')
-rw-r--r--plugins/Alarms/src/alarmlist.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Alarms/src/alarmlist.cpp b/plugins/Alarms/src/alarmlist.cpp
index d7b712dee7..ac2ec84149 100644
--- a/plugins/Alarms/src/alarmlist.cpp
+++ b/plugins/Alarms/src/alarmlist.cpp
@@ -18,10 +18,10 @@ bool startup = true;
bool is_idle = false;
void free_alarm_data(ALARM *alarm) {
- if (alarm->szTitle) {free(alarm->szTitle); alarm->szTitle = 0;}
- if (alarm->szDesc) {free(alarm->szDesc); alarm->szDesc = 0;}
- if (alarm->szCommand) {free(alarm->szCommand); alarm->szCommand = 0;}
- if (alarm->szCommandParams) {free(alarm->szCommandParams); alarm->szCommandParams = 0;}
+ mir_free(alarm->szTitle); alarm->szTitle = 0;
+ mir_free(alarm->szDesc); alarm->szDesc = 0;
+ mir_free(alarm->szCommand); alarm->szCommand = 0;
+ mir_free(alarm->szCommandParams); alarm->szCommandParams = 0;
}
void copy_alarm_data(ALARM *dest, ALARM *src) {