diff --git a/include/wx/scopedptr.h b/include/wx/scopedptr.h index bfe98de16e..8faa383c89 100644 --- a/include/wx/scopedptr.h +++ b/include/wx/scopedptr.h @@ -63,7 +63,7 @@ public: { if ( ptr != m_ptr ) { - delete m_ptr; + wxCHECKED_DELETE(m_ptr); m_ptr = ptr; } } @@ -133,7 +133,7 @@ public: \ { \ if (m_ptr != ptr) \ { \ - delete m_ptr; \ + wxCHECKED_DELETE(m_ptr);\ m_ptr = ptr; \ } \ } \