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/WhatsApp/src/avatars.cpp | |
parent | 2b6d50f7fdfaca84c3ee82909800ad67d2e99bdc (diff) |
Netlib: more old/unused stuff removed
Diffstat (limited to 'protocols/WhatsApp/src/avatars.cpp')
-rw-r--r-- | protocols/WhatsApp/src/avatars.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/WhatsApp/src/avatars.cpp b/protocols/WhatsApp/src/avatars.cpp index 39e521eff3..9bb7e926aa 100644 --- a/protocols/WhatsApp/src/avatars.cpp +++ b/protocols/WhatsApp/src/avatars.cpp @@ -136,7 +136,7 @@ bool CMPlugin::SaveFile(const char *pszUrl, PROTO_AVATAR_INFORMATION &ai) req.szUrl = (char*)pszUrl;
req.nlc = hAvatarConn;
- NETLIBHTTPREQUEST *pReply = Netlib_HttpTransaction(hAvatarUser, &req);
+ NLHR_PTR pReply(Netlib_HttpTransaction(hAvatarUser, &req));
if (pReply == nullptr) {
hAvatarConn = nullptr;
debugLogA("Failed to retrieve avatar from url: %s", pszUrl);
@@ -163,6 +163,5 @@ bool CMPlugin::SaveFile(const char *pszUrl, PROTO_AVATAR_INFORMATION &ai) }
else debugLogA("Error %d reading avatar from url: %s", pReply->resultCode, pszUrl);
- Netlib_FreeHttpRequest(pReply);
return bSuccess;
}
|