From d41820f19f704687b8ef15c47f38c558e6bf3cee Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 11 Nov 2007 21:58:01 +0000 Subject: Fix some dodgy destructor stuff git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8588 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_http_client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/m_http_client.cpp b/src/modules/m_http_client.cpp index d96b8e59f..2010e3e47 100644 --- a/src/modules/m_http_client.cpp +++ b/src/modules/m_http_client.cpp @@ -92,7 +92,8 @@ class ModuleHTTPClient : public Module virtual ~ModuleHTTPClient() { for (HTTPList::iterator i = sockets.begin(); i != sockets.end(); i++) - delete *i; + (*i)->Close(); + ServerInstance->BufferedSocketCull(); } virtual Version GetVersion() -- cgit v1.2.3