From 7fd1e1df81c3ed45e176f1bbf46d873b6cff316e Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 12 Nov 2011 13:00:29 +0000 Subject: (svn r23198) -Codechange: introduce a free that takes const pointers so we don't need to cast to void/non-const before being able to free --- src/network/core/tcp_http.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/network/core/tcp_http.h') 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) -- cgit v1.2.3-70-g09d2