Fixed memory leak in wxMimeTypesManager

backport from head


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-04-06 15:30:54 +00:00
parent 2c7015513f
commit 3fd1786b81
2 changed files with 5 additions and 0 deletions

View File

@@ -185,6 +185,7 @@ All:
Unix (GUI):
- fixed the "close" button of dialogs under KDE 3.1
- fixed memory leak in wxMimeTypesManager
wxBase

View File

@@ -1851,6 +1851,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;
}
}
}