diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-18 11:51:38 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-18 11:51:38 +0000 |
commit | 976508f30d0579e05d8ccd53be903b3cda89f508 (patch) | |
tree | a65671d1375d621110662adda8f0eb2c60053adf /plugins/TrafficCounter/src | |
parent | 00f7de90210080e231b2f8c2a0bf39c8b0a048ac (diff) |
various memory allocation problems
git-svn-id: http://svn.miranda-ng.org/main/trunk@4090 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TrafficCounter/src')
-rw-r--r-- | plugins/TrafficCounter/src/TrafficCounter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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);
}
|