From b60d555adb854610508e1fd4b4107e1e974d003e Mon Sep 17 00:00:00 2001 From: Vlad Mironov Date: Sat, 30 Jun 2012 16:32:48 +0000 Subject: realloc git-svn-id: http://svn.miranda-ng.org/main/trunk@698 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Variables/contact.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Variables/contact.cpp') 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 { -- cgit v1.2.3