Fix a memory leak/crash in CModule
Fix a memory leak/crash in CModule

CModule::RemTimer(CTimer* pTimer) only removed the timer from CModule's own list
of timers but didn't actually destroy the timer. This meant that the timer could
continue to run after it was supposed to be deleted.

Because CModule's destructor used this function this means that all timers
active when a module is unloaded where leaked. When these timers where then
later destroyed this caused a crash because their vtable points inside the
module which was already unloaded (not good!).

Thanks to KiNgMaR for finding and reporting this crash bug.


git-svn-id: 3ad904ec35b89a071badd9cb0113dfe58093e920@1650 726aef4b-f618-498e-8847-2d620e286838

psychon/znc,TuffLuck/znc,markusj/znc,trisk/znc,Adam-/znc,DarthGandalf/znc,Kriechi/znc,trisk/znc,jpnurmi/znc,Zarthus/znc,jantman/znc,aarondunlap/znc,znc/znc,jpnurmi/znc,jantman/znc,Mkaysi/znc,ollie27/znc,elyscape/znc,BtbN/znc,ollie27/znc,withinsoft/znc,trisk/znc,TuffLuck/znc,wolfy1339/znc,Hasimir/znc,badloop/znc,jpnurmi/znc,Hasimir/znc,jreese/znc,jreese/znc,Phansa/znc,jpnurmi/znc,Mkaysi/znc,aarondunlap/znc,BtbN/znc,elyscape/znc,KielBNC/znc,jreese/znc,Hasimir/znc,psychon/znc,dgw/znc,Mikaela/znc,reedloden/znc,withinsoft/znc,markusj/znc,Mikaela/znc,withinsoft/znc,Mkaysi/znc,anthonyryan1/znc,dgw/znc,Zarthus/znc,dgw/znc,kashike/znc,badloop/znc,markusj/znc,Kriechi/znc,elyscape/znc,YourBNC/znc,BtbN/znc,elyscape/znc,Zarthus/znc,jreese/znc,YourBNC/znc,kashike/znc,aarondunlap/znc,aarondunlap/znc,TingPing/znc,elyscape/znc,Zarthus/znc,GLolol/znc,GLolol/znc,Mikaela/znc,YourBNC/znc,Mikaela/znc,anthonyryan1/znc,Mikaela/znc,jreese/znc,DarthGandalf/znc,Mkaysi/znc,ollie27/znc,wolfy1339/znc,trisk/znc,TuffLuck/znc,znc/znc,Phansa/znc,Adam-/znc,TingPing/znc,aarondunlap/znc,TuffLuck/znc,markusj/znc,DarthGandalf/znc,KiNgMaR/znc,TuffLuck/znc,KiNgMaR/znc,Hasimir/znc,Kriechi/znc,anthonyryan1/znc,badloop/znc,psychon/znc,Adam-/znc,ollie27/znc,reedloden/znc,GLolol/znc,aarondunlap/znc,evilnet/znc,reedloden/znc,Adam-/znc,znc/znc,KiNgMaR/znc,KiNgMaR/znc,trisk/znc,YourBNC/znc,Phansa/znc,evilnet/znc,Adam-/znc,ollie27/znc,aarondunlap/znc,GLolol/znc,badloop/znc,elyscape/znc,DarthGandalf/znc,kashike/znc,TingPing/znc,reedloden/znc,dgw/znc,Kriechi/nobnc,evilnet/znc,anthonyryan1/znc,anthonyryan1/znc,TingPing/znc,anthonyryan1/znc,markusj/znc,TingPing/znc,kashike/znc,jantman/znc,KielBNC/znc,Mkaysi/znc,kashike/znc,evilnet/znc,TuffLuck/znc,anthonyryan1/znc,badloop/znc,KiNgMaR/znc,psychon/znc,Mkaysi/znc,znc/znc,trisk/znc,TingPing/znc,evilnet/znc,badloop/znc,psychon/znc,Adam-/znc,KielBNC/znc,Phansa/znc,Kriechi/znc,KielBNC/znc,Mkaysi/znc,KiNgMaR/znc,GLolol/znc,KielBNC/znc,DarthGandalf/znc,dgw/znc,jantman/znc,jreese/znc,GLolol/znc,withinsoft/znc,TuffLuck/znc,withinsoft/znc,badloop/znc,jpnurmi/znc,Phansa/znc,evilnet/znc,Phansa/znc,wolfy1339/znc,reedloden/znc,Kriechi/nobnc,Hasimir/znc,Hasimir/znc,Kriechi/znc,wolfy1339/znc,jantman/znc,znc/znc,markusj/znc,Kriechi/nobnc,jpnurmi/znc,BtbN/znc,Zarthus/znc,psychon/znc,YourBNC/znc,withinsoft/znc,Mikaela/znc,DarthGandalf/znc,jpnurmi/znc,wolfy1339/znc,Kriechi/znc,dgw/znc,jantman/znc,Zarthus/znc,Adam-/znc,kashike/znc,KielBNC/znc,BtbN/znc,znc/znc,Hasimir/znc,reedloden/znc,ollie27/znc,Mikaela/znc,wolfy1339/znc,BtbN/znc,YourBNC/znc