]> git.saurik.com Git - wxWidgets.git/commitdiff
plugged memory leak
authorRobin Dunn <robin@alldunn.com>
Wed, 9 Feb 2000 20:35:09 +0000 (20:35 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 9 Feb 2000 20:35:09 +0000 (20:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/http.cpp

index 7d24b92f3ef1c9afbea47f2f7ea17d5b3265b145..6997cf0f364588c82d52167edc268f233ec283d3 100644 (file)
@@ -59,6 +59,11 @@ wxHTTP::~wxHTTP()
     delete string;
     node = node->Next();
   }
+
+  if (m_addr) {
+      delete m_addr;
+      m_addr = NULL;
+  }
 }
 
 wxString wxHTTP::GetContentType()