diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index 4b6378e1d6..f194935891 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -1879,6 +1879,10 @@ int wxMimeTypesManagerImpl::AddToMimeData(const wxString& strType, entryOld->AddOrReplaceVerb(verb, entry->GetCmd(i)); } } + + // as we don't store it anywhere, it won't be deleted later as + // usual -- do it immediately instead + delete entry; } } }