(svn r9409) [NoAI] -Codechange: make AutoPtrT dtor() bit more robust - prevent recursive dtor() calls in the case of circular references
--- a/src/misc/autoptr.hpp Thu Mar 22 09:52:12 2007 +0000
+++ b/src/misc/autoptr.hpp Thu Mar 22 22:53:44 2007 +0000
@@ -36,8 +36,9 @@
FORCEINLINE ~AutoPtrT()
{
if (m_p != NULL) {
- delete m_p;
+ T *p = m_p;
m_p = NULL;
+ delete p;
}
}