mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-11 00:45:53 +01:00
More uses of safenew for classes we derive from wxWindow classes...
... Also removed some unnecessary deletes of widgets that are managed by parent windows
This commit is contained in:
@@ -230,7 +230,7 @@ void KeyConfigPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
S.StartHorizontalLay(wxEXPAND, 1);
|
||||
{
|
||||
if (!mView) {
|
||||
mView = new KeyView(this, CommandsListID);
|
||||
mView = safenew KeyView(this, CommandsListID);
|
||||
mView->SetName(_("Bindings"));
|
||||
}
|
||||
S.Prop(true);
|
||||
@@ -1209,5 +1209,6 @@ void KeyConfigPrefs::Cancel()
|
||||
|
||||
PrefsPanel *KeyConfigPrefsFactory::Create(wxWindow *parent)
|
||||
{
|
||||
return new KeyConfigPrefs(parent);
|
||||
wxASSERT(parent); // to justify safenew
|
||||
return safenew KeyConfigPrefs(parent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user