X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76a5e5d21ee1a6230d777ce0209b2df4c6075f0f..6cd4655bee404d94e1f0eb4d880e24668c842dfd:/src/mac/dirmac.cpp diff --git a/src/mac/dirmac.cpp b/src/mac/dirmac.cpp index 1acff5b7ca..729be9473d 100644 --- a/src/mac/dirmac.cpp +++ b/src/mac/dirmac.cpp @@ -253,7 +253,10 @@ wxString wxDir::GetName() const wxDir::~wxDir() { - delete M_DIR; + if (M_DIR != NULL) { + delete M_DIR; + m_data = NULL; + } } // ----------------------------------------------------------------------------