From 49677b86de6da5a83072acda134efbcf397240f7 Mon Sep 17 00:00:00 2001 From: prozacx Date: Sat, 8 Oct 2005 07:04:25 +0000 Subject: [PATCH] Allocate static CZNC object on the heap git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@543 726aef4b-f618-498e-8847-2d620e286838 --- znc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/znc.h b/znc.h index 4e7f966f..8ec71b61 100644 --- a/znc.h +++ b/znc.h @@ -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);