From 58ff50e5bf8dbb6b28d54370423232dc0221cd53 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 12 Aug 2013 16:21:37 +0000 Subject: mir_alloc/calloc/free instead of simple malloc/calloc/free git-svn-id: http://svn.miranda-ng.org/main/trunk@5660 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/buttonsbar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/TabSRMM/src/buttonsbar.cpp') diff --git a/plugins/TabSRMM/src/buttonsbar.cpp b/plugins/TabSRMM/src/buttonsbar.cpp index 58fed2cc7a..0e878bcb93 100644 --- a/plugins/TabSRMM/src/buttonsbar.cpp +++ b/plugins/TabSRMM/src/buttonsbar.cpp @@ -94,7 +94,7 @@ static int DBRemoveEnumProc(const char *szSetting, LPARAM lParam) RemoveSettings *rs = (RemoveSettings *)lParam; if (!rs->szPrefix || !strncmp(szSetting, rs->szPrefix, strlen(rs->szPrefix))) { - rs->szSettings = (char **)realloc(rs->szSettings, (rs->count + 1) * sizeof(char *)); + rs->szSettings = (char **)mir_realloc(rs->szSettings, (rs->count + 1) * sizeof(char *)); rs->szSettings[rs->count] = _strdup(szSetting); rs->count += 1; } @@ -124,10 +124,10 @@ static int Hlp_RemoveDatabaseSettings(HANDLE hContact, char *szModule, char *szP if (!db_unset(hContact, szModule, rs.szSettings[i])) { count += 1; } - free(rs.szSettings[i]); + mir_free(rs.szSettings[i]); } } - free(rs.szSettings); + mir_free(rs.szSettings); } return count; -- cgit v1.2.3