X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fthreadengine.cpp;h=c6128d13295efd0b7ea76ee2012ef2ca293821ed;hb=3954761f11af50ed33b88f1e6609bfa8a5dab750;hp=e7a316282720571d2a1282b2839fd055aa728fd3;hpb=f9e6de5284aaacd55aa389445cd595bdcaa8339e;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/threadengine.cpp b/src/threadengine.cpp index e7a316282..c6128d132 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 + */ +Thread::~Thread() +{ + if (state) + { + state->FreeThread(this); + delete state; + } +}