summaryrefslogtreecommitdiff
path: root/plugins/Variables/contact.cpp
diff options
context:
space:
mode:
authorVlad Mironov <mironych@googlemail.com>2012-06-30 16:32:48 +0000
committerVlad Mironov <mironych@googlemail.com>2012-06-30 16:32:48 +0000
commitb60d555adb854610508e1fd4b4107e1e974d003e (patch)
tree002fda303fcb576ba89e70a1a4548223ac3794ed /plugins/Variables/contact.cpp
parentc1fad409f3683c7dc2048060d5d98aa7b7228563 (diff)
realloc
git-svn-id: http://svn.miranda-ng.org/main/trunk@698 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Variables/contact.cpp')
-rw-r--r--plugins/Variables/contact.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Variables/contact.cpp b/plugins/Variables/contact.cpp
index 78c3cef67c..d2de7c5ace 100644
--- a/plugins/Variables/contact.cpp
+++ b/plugins/Variables/contact.cpp
@@ -484,7 +484,7 @@ int getContactFromString( CONTACTSINFO* ci )
}
}
if (bMatch) {
- ci->hContacts = ( HANDLE* )realloc(ci->hContacts, (count+1)*sizeof(HANDLE));
+ ci->hContacts = ( HANDLE* )mir_realloc(ci->hContacts, (count+1)*sizeof(HANDLE));
if (ci->hContacts == NULL) {
return -1;
@@ -497,7 +497,7 @@ int getContactFromString( CONTACTSINFO* ci )
if (count == 1) { /* cache the found result */
EnterCriticalSection(&csContactCache);
- cce = ( CONTACTCE* )realloc(cce, (cacheSize+1)*sizeof(CONTACTCE));
+ cce = ( CONTACTCE* )mir_realloc(cce, (cacheSize+1)*sizeof(CONTACTCE));
if (cce == NULL) {
LeaveCriticalSection(&csContactCache);
return count;
@@ -546,7 +546,7 @@ static int contactSettingChanged(WPARAM wParam, LPARAM lParam)
mir_free(cce[i].tszContact);
if (cacheSize > 1) {
MoveMemory(&cce[i], &cce[cacheSize-1], sizeof(CONTACTCE));
- cce = ( CONTACTCE* )realloc(cce, (cacheSize-1)*sizeof(CONTACTCE));
+ cce = ( CONTACTCE* )mir_realloc(cce, (cacheSize-1)*sizeof(CONTACTCE));
cacheSize -= 1;
}
else {