From 9b6337bec9b8adfcb1746c76be752334869ac997 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 25 Mar 2009 11:37:06 +0000 Subject: start of fix for bug #805 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11260 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/threadengine.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/threadengine.cpp b/src/threadengine.cpp index e7a316282..faa020234 100644 --- a/src/threadengine.cpp +++ b/src/threadengine.cpp @@ -20,4 +20,14 @@ #include "inspircd.h" #include "threadengine.h" - +/** If this thread has a Creator set, call it to + * free the thread + */ +virtual ~Thread::Thread() +{ + if (state) + { + state->FreeThread(this); + delete state; + } +} -- cgit v1.2.3