summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 965619eea..73b465917 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -1004,7 +1004,7 @@ ModeParser::~ModeParser()
for(int i=0; i < 256; i++)
{
ModeHandler* mh = modehandlers[i];
- if (mh)
+ if (mh && mh->creator == NULL)
{
count++;
delete mh;