From: <sil...@us...> - 2009-12-19 21:43:43
|
Revision: 1685 http://znc.svn.sourceforge.net/znc/?rev=1685&view=rev Author: silverleo Date: 2009-12-19 21:43:33 +0000 (Sat, 19 Dec 2009) Log Message: ----------- Always null the interp var on load to prevent a possible crash on unload. Modified Paths: -------------- trunk/modules/extra/modtcl.cpp Modified: trunk/modules/extra/modtcl.cpp =================================================================== --- trunk/modules/extra/modtcl.cpp 2009-12-19 19:15:07 UTC (rev 1684) +++ trunk/modules/extra/modtcl.cpp 2009-12-19 21:43:33 UTC (rev 1685) @@ -50,7 +50,9 @@ class CModTcl : public CModule { public: - MODCONSTRUCTOR(CModTcl) {} + MODCONSTRUCTOR(CModTcl) { + interp = NULL; + } virtual ~CModTcl() { if (interp) { @@ -66,7 +68,6 @@ } #endif - interp = NULL; AddTimer(new CModTclStartTimer(this, 1, 1, "ModTclStarter", "Timer for modtcl to load the interpreter.")); return true; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |