From 976508f30d0579e05d8ccd53be903b3cda89f508 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 18 Mar 2013 11:51:38 +0000 Subject: various memory allocation problems git-svn-id: http://svn.miranda-ng.org/main/trunk@4090 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TrafficCounter/src/TrafficCounter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/TrafficCounter') diff --git a/plugins/TrafficCounter/src/TrafficCounter.cpp b/plugins/TrafficCounter/src/TrafficCounter.cpp index 994752626b..81ad671711 100644 --- a/plugins/TrafficCounter/src/TrafficCounter.cpp +++ b/plugins/TrafficCounter/src/TrafficCounter.cpp @@ -1206,14 +1206,14 @@ void CreateProtocolList(void) void DestroyProtocolList(void) { - for (int i = 0; i < NumberOfAccounts; i++) - { + for (int i = 0; i < NumberOfAccounts; i++) { Stat_CheckStatistics(i); CloseHandle(ProtoList[i].hFile); + mir_free(ProtoList[i].tszAccountName); mir_free(ProtoList[i].name); mir_free(ProtoList[i].AllStatistics); } - // + mir_free(ProtoList); } -- cgit v1.2.3