diff options
Diffstat (limited to 'plugins/PasteIt/src/PasteToWeb.cpp')
-rw-r--r-- | plugins/PasteIt/src/PasteToWeb.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/PasteIt/src/PasteToWeb.cpp b/plugins/PasteIt/src/PasteToWeb.cpp index 7a98dcf5b8..536bf8001f 100644 --- a/plugins/PasteIt/src/PasteToWeb.cpp +++ b/plugins/PasteIt/src/PasteToWeb.cpp @@ -456,14 +456,12 @@ char* PasteToWeb::SendToWeb(char* url, std::map<std::string, std::string>& heade char *resCont = nullptr;
nlhr.headersCount = nHeaders;
- NETLIBHTTPREQUEST* nlhrReply = Netlib_HttpTransaction(g_hNetlibUser, &nlhr);
+ NLHR_PTR nlhrReply(Netlib_HttpTransaction(g_hNetlibUser, &nlhr));
if (nlhrReply != nullptr) {
if (nlhrReply->resultCode == 200) {
resCont = nlhrReply->pData;
nlhrReply->pData = 0;
}
-
- Netlib_FreeHttpRequest(nlhrReply);
}
delete[] httpHeaders;
|