From fa67c7e80b15060773295e4719545a802d8717d5 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 24 Jan 2010 00:15:15 +0000 Subject: Don't query module version prior to init; fixes valgrind segfault git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12317 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modmanager_dynamic.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modmanager_dynamic.cpp') diff --git a/src/modmanager_dynamic.cpp b/src/modmanager_dynamic.cpp index 1fcf3aa56..0c63eefcd 100644 --- a/src/modmanager_dynamic.cpp +++ b/src/modmanager_dynamic.cpp @@ -88,11 +88,10 @@ bool ModuleManager::Load(const char* filename) { newmod->ModuleSourceFile = filename_str; newmod->ModuleDLLManager = newhandle; - Version v = newmod->GetVersion(); Modules[filename_str] = newmod; - newmod->init(); + Version v = newmod->GetVersion(); ServerInstance->Logs->Log("MODULE", DEFAULT,"New module introduced: %s (Module version %s)%s", filename, newhandle->GetVersion().c_str(), (!(v.Flags & VF_VENDOR) ? " [3rd Party]" : " [Vendor]")); } -- cgit v1.2.3