Allocate static CZNC object on the heap

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@543 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-10-08 07:04:25 +00:00
parent c5eeaa2c1d
commit 49677b86de

4
znc.h
View File

@@ -75,8 +75,8 @@ public:
// Static allocator
static CZNC& Get() {
static CZNC ZNC;
return ZNC;
static CZNC* pZNC = new CZNC;
return *pZNC;
}
CUser* FindUser(const CString& sUsername);