]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/sharedptr.h
Define WXBUILDING in Xcode projects.
[wxWidgets.git] / include / wx / sharedptr.h
index 279e29b3a3b328982a1755bf8965cc2abde7b48a..290c610adce601592b5ced87307ad880191590db 100644 (file)
@@ -115,8 +115,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;