From e63471b9885d040b9e6db3255432f6cea36144e9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 4 Jan 2024 11:50:17 +0300 Subject: Netlib: more old/unused stuff removed --- protocols/WhatsApp/src/avatars.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'protocols/WhatsApp') 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; } -- cgit v1.2.3