(svn r10644) -Merge (from NoAI): framework for reference counted objects (pointers).

This commit is contained in:
rubidium
2007-07-20 18:44:04 +00:00
parent 3f983ff1f2
commit 5083f22d1d
3 changed files with 133 additions and 8 deletions

View File

@@ -38,8 +38,9 @@ public:
FORCEINLINE ~AutoPtrT()
{
if (m_p != NULL) {
delete m_p;
T *p = m_p;
m_p = NULL;
delete p;
}
}