mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-10 08:25:52 +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:
@@ -334,7 +334,8 @@ int ExportMP2::Export(AudacityProject *project,
|
||||
|
||||
wxWindow *ExportMP2::OptionsCreate(wxWindow *parent, int format)
|
||||
{
|
||||
return new ExportMP2Options(parent, format);
|
||||
wxASSERT(parent); // to justify safenew
|
||||
return safenew ExportMP2Options(parent, format);
|
||||
}
|
||||
|
||||
// returns buffer len; caller frees
|
||||
|
||||
Reference in New Issue
Block a user