From 23b67a0f1776e8f10acf0af222875aa2f1117bdd Mon Sep 17 00:00:00 2001 From: kelno Date: Tue, 26 Jun 2018 10:47:17 +0200 Subject: [PATCH] Fixed one memory leak Destructors of class inheriting from ChatFilter did not get called --- src/plugins/playerbot/ChatFilter.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/playerbot/ChatFilter.h b/src/plugins/playerbot/ChatFilter.h index 16dde4dfee3eb..3c75dceb6a9d8 100644 --- a/src/plugins/playerbot/ChatFilter.h +++ b/src/plugins/playerbot/ChatFilter.h @@ -9,6 +9,7 @@ namespace ai public: ChatFilter(PlayerbotAI* ai) : PlayerbotAIAware(ai) {} virtual string Filter(string message); + virtual ~ChatFilter() {} }; class CompositeChatFilter : public ChatFilter