From e19cc122081ce2a9c5e7f338fcba5c13066227ca Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sat, 30 Oct 2010 04:26:44 +0300 Subject: modified: core/commonheaders.h modified: core/main.cpp modified: core/modules.cpp --- core/modules.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'core/modules.cpp') diff --git a/core/modules.cpp b/core/modules.cpp index 6518825..5b5186b 100644 --- a/core/modules.cpp +++ b/core/modules.cpp @@ -68,11 +68,26 @@ plugin::plugin(ACE_DLL *lib, PLUGININFO *info, exported_functions_s *funcs) { if(lib) plug = lib; + else + plug = NULL; if(info) plugininfo = info; + else + plugininfo = NULL; if(funcs) exported_funcs = funcs; + else + exported_funcs = NULL; } + +plugin::~plugin() +{ + if(plug) + delete plug; + if(exported_funcs) + delete exported_funcs; +} + const plugin::exported_functions_s* plugin::get_exported_functions() { return exported_funcs; -- cgit v1.2.3