From d14f4fec2d5350ade7c2f6b3eaf616ec72633b32 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 9 Feb 2000 20:35:09 +0000 Subject: [PATCH] plugged memory leak git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/http.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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() -- 2.45.2