fixed memory leaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -36,6 +36,8 @@ public:
|
|||||||
// ctor loads all info into memory for quicker access later on
|
// ctor loads all info into memory for quicker access later on
|
||||||
// TODO it would be nice to load them all, but parse on demand only...
|
// TODO it would be nice to load them all, but parse on demand only...
|
||||||
wxMimeTypesManagerImpl();
|
wxMimeTypesManagerImpl();
|
||||||
|
~wxMimeTypesManagerImpl();
|
||||||
|
|
||||||
|
|
||||||
// implement containing class functions
|
// implement containing class functions
|
||||||
wxFileType *GetFileTypeFromExtension(const wxString& ext);
|
wxFileType *GetFileTypeFromExtension(const wxString& ext);
|
||||||
|
@@ -139,6 +139,11 @@ public:
|
|||||||
m_next = NULL;
|
m_next = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~MailCapEntry()
|
||||||
|
{
|
||||||
|
if (m_next) delete m_next;
|
||||||
|
}
|
||||||
|
|
||||||
// accessors
|
// accessors
|
||||||
const wxString& GetOpenCmd() const { return m_openCmd; }
|
const wxString& GetOpenCmd() const { return m_openCmd; }
|
||||||
const wxString& GetPrintCmd() const { return m_printCmd; }
|
const wxString& GetPrintCmd() const { return m_printCmd; }
|
||||||
@@ -1041,6 +1046,14 @@ wxMimeTypesManagerImpl::wxMimeTypesManagerImpl()
|
|||||||
handlers[hn]->GetMimeInfoRecords(this);
|
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 *
|
wxFileType *
|
||||||
wxMimeTypesManagerImpl::GetFileTypeFromExtension(const wxString& ext)
|
wxMimeTypesManagerImpl::GetFileTypeFromExtension(const wxString& ext)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user