summaryrefslogtreecommitdiff
path: root/protocols/Omegle/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Omegle/src')
-rw-r--r--protocols/Omegle/src/communication.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/Omegle/src/communication.cpp b/protocols/Omegle/src/communication.cpp
index a7b6c7960b..66f1205f12 100644
--- a/protocols/Omegle/src/communication.cpp
+++ b/protocols/Omegle/src/communication.cpp
@@ -79,7 +79,7 @@ http::response Omegle_client::flap(const int request_type, std::string *post_dat
parent->debugLogA("@@@@@ Sending request to '%s'", nlhr.szUrl);
// Send the request
- NETLIBHTTPREQUEST *pnlhr = Netlib_HttpTransaction(handle_, &nlhr);
+ NLHR_PTR pnlhr(Netlib_HttpTransaction(handle_, &nlhr));
mir_free(nlhr.headers);
@@ -113,8 +113,6 @@ http::response Omegle_client::flap(const int request_type, std::string *post_dat
}
parent->debugLogA("&&&&& Got response: %s", resp.data.c_str());
-
- Netlib_FreeHttpRequest(pnlhr);
}
else {
parent->debugLogA("!!!!! No response from server (time-out)");