diff options
author | Vlad Mironov <mironych@googlemail.com> | 2012-06-30 16:32:48 +0000 |
---|---|---|
committer | Vlad Mironov <mironych@googlemail.com> | 2012-06-30 16:32:48 +0000 |
commit | b60d555adb854610508e1fd4b4107e1e974d003e (patch) | |
tree | 002fda303fcb576ba89e70a1a4548223ac3794ed /plugins/Variables/parse_variables.cpp | |
parent | c1fad409f3683c7dc2048060d5d98aa7b7228563 (diff) |
realloc
git-svn-id: http://svn.miranda-ng.org/main/trunk@698 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Variables/parse_variables.cpp')
-rw-r--r-- | plugins/Variables/parse_variables.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Variables/parse_variables.cpp b/plugins/Variables/parse_variables.cpp index 8a4351fbbf..8b9bc57093 100644 --- a/plugins/Variables/parse_variables.cpp +++ b/plugins/Variables/parse_variables.cpp @@ -41,7 +41,7 @@ static int addToVariablesRegister(TCHAR *szName, TCHAR *szText) { return 0;
}
}
- vr = ( VARIABLEREGISTER* )realloc(vr, (vrCount+1)*sizeof(VARIABLEREGISTER));
+ vr = ( VARIABLEREGISTER* )mir_realloc(vr, (vrCount+1)*sizeof(VARIABLEREGISTER));
if (vr == NULL) {
LeaveCriticalSection(&csVarRegister);
return -1;
@@ -89,7 +89,7 @@ int clearVariableRegister() { mir_free(vr[i].szText);
if (vrCount > 1) {
memcpy(&vr[i], &vr[vrCount-1], sizeof(VARIABLEREGISTER));
- vr = ( VARIABLEREGISTER* )realloc(vr, (vrCount-1)*sizeof(VARIABLEREGISTER));
+ vr = ( VARIABLEREGISTER* )mir_realloc(vr, (vrCount-1)*sizeof(VARIABLEREGISTER));
if (vr == NULL) {
LeaveCriticalSection(&csVarRegister);
return -1;
|