mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-10 13:40:09 +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:
@@ -1869,7 +1869,8 @@ int ExportMP3::Export(AudacityProject *project,
|
||||
|
||||
wxWindow *ExportMP3::OptionsCreate(wxWindow *parent, int format)
|
||||
{
|
||||
return new ExportMP3Options(parent, format);
|
||||
wxASSERT(parent); // to justify safenew
|
||||
return safenew ExportMP3Options(parent, format);
|
||||
}
|
||||
|
||||
int ExportMP3::FindValue(CHOICES *choices, int cnt, int needle, int def)
|
||||
|
||||
Reference in New Issue
Block a user