summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-09 21:29:08 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-09 21:29:08 +0000
commitd91de4ee7a017891fd56babcbfc0114810b3b763 (patch)
treef3aab7ac0fb54daca9bcd53cd0ea0191aec63b8d
parentc95593578c276f5001fb40266090a5cb9bbb18ca (diff)
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
-rw-r--r--include/dynamic.h4
-rw-r--r--src/inspircd.cpp2
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 <dlfcn.h>
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;