X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/70687b638d5860a91a53aecec2a43d838d925372..3ca22d5e92f2a6689ebf569239eb127613c6c3cc:/src/unix/mimetype.cpp 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; } } }