mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-16 09:31:14 +01:00
Use macro safenew for many allocations of wxWindow subclasses
This commit is contained in:
@@ -152,7 +152,7 @@ void BatchProcessDialog::OnApplyToProject(wxCommandEvent & WXUNUSED(event))
|
||||
}
|
||||
wxString name = mChains->GetItemText(item);
|
||||
|
||||
wxDialog * pD = new wxDialog(this, wxID_ANY, GetTitle());
|
||||
wxDialog * pD = safenew wxDialog(this, wxID_ANY, GetTitle());
|
||||
pD->SetName(pD->GetTitle());
|
||||
ShuttleGui S(pD, eIsCreating);
|
||||
|
||||
@@ -292,7 +292,7 @@ void BatchProcessDialog::OnApplyToFiles(wxCommandEvent & WXUNUSED(event))
|
||||
|
||||
files.Sort();
|
||||
|
||||
wxDialog * pD = new wxDialog(this, wxID_ANY, GetTitle());
|
||||
wxDialog * pD = safenew wxDialog(this, wxID_ANY, GetTitle());
|
||||
pD->SetName(pD->GetTitle());
|
||||
ShuttleGui S(pD, eIsCreating);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user