diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-31 20:07:14 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-31 20:07:14 +0000 |
commit | e5efe5fd9d785eeb68667e84d219ebfa64620c14 (patch) | |
tree | 352c7209413ac4cf80d84f20248fff777454c93b /src/modules/clist | |
parent | 6991c4ee6704d77ffaab3300e763d0462c516caa (diff) |
- check for NULL values in Netlib_CloseHandle;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@6727 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/clist')
-rw-r--r-- | src/modules/clist/clistmenus.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/clist/clistmenus.cpp b/src/modules/clist/clistmenus.cpp index 1ae87be532..6ca756072f 100644 --- a/src/modules/clist/clistmenus.cpp +++ b/src/modules/clist/clistmenus.cpp @@ -142,13 +142,9 @@ typedef struct _MenuItemHandles void FreeMenuProtos(void)
{
- int i;
-
if (cli.menuProtos) {
- for (i=0; i < cli.menuProtoCount; i++)
- if (cli.menuProtos[i].szProto)
- mir_free(cli.menuProtos[i].szProto);
-
+ for (int i=0; i < cli.menuProtoCount; i++)
+ mir_free(cli.menuProtos[i].szProto);
mir_free(cli.menuProtos);
cli.menuProtos = NULL;
}
|