X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/13e3b45a89c7a58ada9e051ed3ade96ded8e141e..e1208c3103734c8581c9854c344b97323e381897:/src/unix/mimetype.cpp diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index 3e74741551..fb55217c0c 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -138,6 +138,11 @@ public: { m_next = NULL; } + + ~MailCapEntry() + { + if (m_next) delete m_next; + } // accessors const wxString& GetOpenCmd() const { return m_openCmd; } @@ -1041,6 +1046,14 @@ wxMimeTypesManagerImpl::wxMimeTypesManagerImpl() handlers[hn]->GetMimeInfoRecords(this); } + +wxMimeTypesManagerImpl::~wxMimeTypesManagerImpl() +{ + size_t cnt = m_aEntries.GetCount(); + for (size_t i = 0; i < cnt; i++) delete m_aEntries[i]; +} + + wxFileType * wxMimeTypesManagerImpl::GetFileTypeFromExtension(const wxString& ext) {