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:
@@ -185,6 +185,7 @@ All:
|
||||
Unix (GUI):
|
||||
|
||||
- fixed the "close" button of dialogs under KDE 3.1
|
||||
- fixed memory leak in wxMimeTypesManager
|
||||
|
||||
wxBase
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user