From: Vadim Zeitlin Date: Sun, 2 Mar 2003 23:18:26 +0000 (+0000) Subject: fixed memory leak (patch 685580) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2b293fc78f342cedba6eec03d419d2e96e302fed fixed memory leak (patch 685580) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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; } } }