summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_filter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp
index 57e5d8fdb..b82396dce 100644
--- a/src/modules/m_filter.cpp
+++ b/src/modules/m_filter.cpp
@@ -588,6 +588,7 @@ class ModuleFilter : public FilterBase
{
if (i->freeform == freeform)
{
+ delete i->regex;
filters.erase(i);
return true;
}