summaryrefslogtreecommitdiff
path: root/src/network/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/core')
-rw-r--r--src/network/core/tcp_http.cpp2
-rw-r--r--src/network/core/tcp_http.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/network/core/tcp_http.cpp b/src/network/core/tcp_http.cpp
index 0bf733462..386ba776c 100644
--- a/src/network/core/tcp_http.cpp
+++ b/src/network/core/tcp_http.cpp
@@ -73,7 +73,7 @@ NetworkHTTPSocketHandler::~NetworkHTTPSocketHandler()
if (this->sock != INVALID_SOCKET) closesocket(this->sock);
this->sock = INVALID_SOCKET;
- free((void*)this->data);
+ free(this->data);
}
NetworkRecvStatus NetworkHTTPSocketHandler::CloseConnection(bool error)
diff --git a/src/network/core/tcp_http.h b/src/network/core/tcp_http.h
index 1af7c31df..dc678cca0 100644
--- a/src/network/core/tcp_http.h
+++ b/src/network/core/tcp_http.h
@@ -105,13 +105,13 @@ public:
/** Free all our allocated data. */
~NetworkHTTPContentConnecter()
{
- free((void*)this->url);
+ free(this->url);
}
virtual void OnFailure()
{
this->callback->OnFailure();
- free((void*)this->data);
+ free(this->data);
}
virtual void OnConnect(SOCKET s)