]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/sharedptr.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / sharedptr.h
index 279e29b3a3b328982a1755bf8965cc2abde7b48a..c6b28f81a6e584185b829ca104891d1a2ee1e82f 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:     Shared pointer based on the counted_ptr<> template, which
 //              is in the public domain
 // Author:      Robert Roebling, Yonat Sharon
-// RCS-ID:      $Id$
 // Copyright:   Robert Roebling
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -115,8 +114,7 @@ private:
     {
         if (m_ref)
         {
-            wxAtomicDec( m_ref->m_count );
-            if (m_ref->m_count == 0)
+            if (!wxAtomicDec( m_ref->m_count ))
             {
                 delete m_ref->m_ptr;
                 delete m_ref;