From 10fad422df7991eabe1026df96a6e7ac6a46ae4e Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 8 Jul 2012 14:53:33 +0200 Subject: Remove unnecessary cleanup in XLineManager destructor --- src/xline.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/xline.cpp') diff --git a/src/xline.cpp b/src/xline.cpp index 720dbcc50..655b2f940 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -502,8 +502,6 @@ XLineManager::~XLineManager() for(unsigned int i=0; i < sizeof(gekqz); i++) { XLineFactory* xlf = GetFactory(std::string(1, gekqz[i])); - if (xlf) - UnregisterFactory(xlf); delete xlf; } @@ -514,10 +512,7 @@ XLineManager::~XLineManager() { delete j->second; } - i->second.clear(); } - lookup_lines.clear(); - } void XLine::Apply(User* u) -- cgit v1.2.3