diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-30 16:17:46 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-30 16:17:46 +0000 |
commit | 7dad3543a2b848f6547b291f812c9643dc0b85f2 (patch) | |
tree | 1054ad62ecba19750bb4531f34e9d033ac1b7244 /plugins/Variables/parse_math.cpp | |
parent | 008fe34954b0bda8fd3487a9658c14581ecd813a (diff) |
Variables moved to mir_* memory allocation routines
git-svn-id: http://svn.miranda-ng.org/main/trunk@696 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Variables/parse_math.cpp')
-rw-r--r-- | plugins/Variables/parse_math.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Variables/parse_math.cpp b/plugins/Variables/parse_math.cpp index 1d4cb3c30a..9fefb30ee4 100644 --- a/plugins/Variables/parse_math.cpp +++ b/plugins/Variables/parse_math.cpp @@ -2,7 +2,7 @@ Variables Plugin for Miranda-IM (www.miranda-im.org)
Copyright 2003-2006 P. Boon
- This program is free software; you can redistribute it and/or modify
+ This program is mir_free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
@@ -64,7 +64,7 @@ static TCHAR *parseHex(ARGUMENTSINFO *ai) { padding = ttoi(ai->targv[2]);
mir_sntprintf(szVal, SIZEOF(szVal), _T("%x"), val);
zeros = max(padding - (signed int)_tcslen(szVal), 0);
- res = ( TCHAR* )malloc((zeros + _tcslen(szVal) + 3)*sizeof(TCHAR));
+ res = ( TCHAR* )mir_alloc((zeros + _tcslen(szVal) + 3)*sizeof(TCHAR));
if (res == NULL)
return NULL;
@@ -170,7 +170,7 @@ static TCHAR *parseNum(ARGUMENTSINFO *ai) { return NULL;
zeros = max(padding - (signed int)_tcslen(szVal), 0);
- res = ( TCHAR* )malloc((zeros + _tcslen(szVal) + 1)*sizeof(TCHAR));
+ res = ( TCHAR* )mir_alloc((zeros + _tcslen(szVal) + 1)*sizeof(TCHAR));
if (res == NULL)
return NULL;
@@ -180,7 +180,7 @@ static TCHAR *parseNum(ARGUMENTSINFO *ai) { *cur++ = _T('0');
_tcscat(res, szVal);
- free(szVal);
+ mir_free(szVal);
return res;
}
|