mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
Always null the interp var on load to prevent a possible crash on unload.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1685 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -50,7 +50,9 @@ protected:
|
||||
|
||||
class CModTcl : public CModule {
|
||||
public:
|
||||
MODCONSTRUCTOR(CModTcl) {}
|
||||
MODCONSTRUCTOR(CModTcl) {
|
||||
interp = NULL;
|
||||
}
|
||||
|
||||
virtual ~CModTcl() {
|
||||
if (interp) {
|
||||
@@ -66,7 +68,6 @@ public:
|
||||
}
|
||||
#endif
|
||||
|
||||
interp = NULL;
|
||||
AddTimer(new CModTclStartTimer(this, 1, 1, "ModTclStarter", "Timer for modtcl to load the interpreter."));
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user