From 07a1ac78587f659c11bde4c1493456dbb427318a Mon Sep 17 00:00:00 2001 From: scop Date: Tue, 19 Apr 2005 06:11:42 +0000 Subject: =?UTF-8?q?Fix=20for=20crash=20at=20exit=20from=20Marco=20Schl?= =?UTF-8?q?=C3=BC=C3=9Fler.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dxr3singleton.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dxr3singleton.h') diff --git a/dxr3singleton.h b/dxr3singleton.h index fbc8031..8be1216 100644 --- a/dxr3singleton.h +++ b/dxr3singleton.h @@ -41,6 +41,12 @@ class Singleton static T m_Instance; return m_Instance; } + + static T* InstanceP() + { + static T* m_InstanceP = new T; + return m_InstanceP; + } }; #endif /*_DXR3_SINGLETON_H_*/ -- cgit v1.2.3