diff options
author | scop <scop> | 2005-04-19 06:11:42 +0000 |
---|---|---|
committer | scop <scop> | 2005-04-19 06:11:42 +0000 |
commit | 07a1ac78587f659c11bde4c1493456dbb427318a (patch) | |
tree | 4467ddfb77bbb5239001330c08380e258771c415 /dxr3singleton.h | |
parent | bdd82605bdab8c749bf49b7ec3a2c2adfbbdfac8 (diff) | |
download | vdr-plugin-dxr3-07a1ac78587f659c11bde4c1493456dbb427318a.tar.gz vdr-plugin-dxr3-07a1ac78587f659c11bde4c1493456dbb427318a.tar.bz2 |
Fix for crash at exit from Marco Schlüßler.
Diffstat (limited to 'dxr3singleton.h')
-rw-r--r-- | dxr3singleton.h | 6 |
1 files changed, 6 insertions, 0 deletions
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_*/ |