diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-04 11:50:17 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-04 11:50:17 +0300 |
commit | e63471b9885d040b9e6db3255432f6cea36144e9 (patch) | |
tree | b6df226f74aae24124dee796ecb40355da0fa075 /protocols/JabberG/src | |
parent | 2b6d50f7fdfaca84c3ee82909800ad67d2e99bdc (diff) |
Netlib: more old/unused stuff removed
Diffstat (limited to 'protocols/JabberG/src')
-rw-r--r-- | protocols/JabberG/src/jabber_ft.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_ft.cpp b/protocols/JabberG/src/jabber_ft.cpp index e0ede298da..9ca292ca71 100644 --- a/protocols/JabberG/src/jabber_ft.cpp +++ b/protocols/JabberG/src/jabber_ft.cpp @@ -756,7 +756,7 @@ LBL_Fail: }
_close(fileId);
- NETLIBHTTPREQUEST *res = Netlib_HttpTransaction(m_hNetlibUser, &nlhr);
+ NLHR_PTR res(Netlib_HttpTransaction(m_hNetlibUser, &nlhr));
if (res == nullptr) {
debugLogA("error uploading file %S", pwszFileName);
goto LBL_Fail;
@@ -769,12 +769,9 @@ LBL_Fail: default:
debugLogA("error uploading file %S: error %d", pwszFileName, res->resultCode);
- Netlib_FreeHttpRequest(res);
goto LBL_Fail;
}
- Netlib_FreeHttpRequest(res);
-
// this parameter is optional, if not specified we simply use upload URL
CMStringA szMessage;
if (auto *szGetUrl = version ? XmlGetChildText(slotNode, "get") : XmlGetAttr(XmlFirstChild(slotNode, "get"), "url"))
|