diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-25 20:03:55 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-25 20:03:55 +0000 |
commit | fa2cdd0bb89330cfd9a6c49c4705da2a3cb02834 (patch) | |
tree | 558ff9feb41839be63b2a58168dc9623ecd3a283 /src/modules.cpp | |
parent | 5c05313b6e979968d25a57d04da320a0c1be1b6c (diff) |
Force heap allocation of refcountbase, create usecountbase for non-allocation reference counting
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11978 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index a1c53a1e8..b3aabf284 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -51,15 +51,13 @@ void Event::Send() // These declarations define the behavours of the base class Module (which does nothing at all) -Module::Module() : refcount(1) { } +Module::Module() { } CullResult Module::cull() { return classbase::cull(); } Module::~Module() { - if (refcount != 1) - ServerInstance->Logs->Log("MODULE", DEFAULT, "References remain to destructed module " + ModuleSourceFile); } ModResult Module::OnSendSnotice(char &snomask, std::string &type, const std::string &message) { return MOD_RES_PASSTHRU; } |