summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;