From d91de4ee7a017891fd56babcbfc0114810b3b763 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 9 Sep 2006 21:29:08 +0000 Subject: [PATCH] ModuleFactories are not being deleted, this means that updates arent loaded git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5191 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/dynamic.h | 4 ++-- src/inspircd.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/dynamic.h b/include/dynamic.h index d63e5dc83..678282058 100644 --- a/include/dynamic.h +++ b/include/dynamic.h @@ -65,13 +65,13 @@ class DLLManager { return err; } - - protected: /** The module handle */ void *h; + protected: + /** The last error string, or NULL */ char *err; diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 7efbaa54f..dc139fa0d 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -40,6 +40,7 @@ #include "socket.h" #include "typedefs.h" #include "command_parse.h" +#include using irc::sockets::NonBlocking; using irc::sockets::Blocking; @@ -343,6 +344,7 @@ void InspIRCd::EraseFactory(int j) { if (v == j) { + delete *t; factory.erase(t); factory.push_back(NULL); return; -- 2.39.5