diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-03 18:28:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-03 18:28:20 +0000 |
commit | 784c2757e8c791b4c76a6e739f08b0fb92ec093a (patch) | |
tree | ba42917a56f96f8b5d6f55edb36d9fc337ca1b39 /protocols/JabberG/src/jabber_file.cpp | |
parent | 9026d578dc4b14aa12c51a2147bb999703efbb36 (diff) |
- old junk removed;
- mir_free() doesn't require a check
git-svn-id: http://svn.miranda-ng.org/main/trunk@6321 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_file.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_file.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/protocols/JabberG/src/jabber_file.cpp b/protocols/JabberG/src/jabber_file.cpp index d88ef968c6..7af86a90a7 100644 --- a/protocols/JabberG/src/jabber_file.cpp +++ b/protocols/JabberG/src/jabber_file.cpp @@ -467,20 +467,19 @@ filetransfer::~filetransfer() if (hWaitEvent != INVALID_HANDLE_VALUE)
CloseHandle(hWaitEvent);
- if (jid) mir_free(jid);
- if (sid) mir_free(sid);
- if (fileSize) mir_free(fileSize);
- if (httpHostName) mir_free(httpHostName);
- if (httpPath) mir_free(httpPath);
- if (szDescription) mir_free(szDescription);
+ mir_free(jid);
+ mir_free(sid);
+ mir_free(fileSize);
+ mir_free(httpHostName);
+ mir_free(httpPath);
+ mir_free(szDescription);
- if (std.tszWorkingDir) mir_free(std.tszWorkingDir);
- if (std.tszCurrentFile) mir_free(std.tszCurrentFile);
+ mir_free(std.tszWorkingDir);
+ mir_free(std.tszCurrentFile);
if (std.ptszFiles) {
for (int i=0; i < std.totalFiles; i++)
- if (std.ptszFiles[i]) mir_free(std.ptszFiles[i]);
-
+ mir_free(std.ptszFiles[i]);
mir_free(std.ptszFiles);
} }
|