From: Robin Dunn Date: Wed, 9 Feb 2000 20:35:09 +0000 (+0000) Subject: plugged memory leak X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d14f4fec2d5350ade7c2f6b3eaf616ec72633b32 plugged memory leak git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/http.cpp b/src/common/http.cpp index 7d24b92f3e..6997cf0f36 100644 --- a/src/common/http.cpp +++ b/src/common/http.cpp @@ -59,6 +59,11 @@ wxHTTP::~wxHTTP() delete string; node = node->Next(); } + + if (m_addr) { + delete m_addr; + m_addr = NULL; + } } wxString wxHTTP::GetContentType()