summaryrefslogtreecommitdiff
path: root/plugins/Variables/parse_variables.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Variables/parse_variables.cpp')
-rw-r--r--plugins/Variables/parse_variables.cpp4
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;