mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-05 22:21:15 +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:
@@ -163,7 +163,6 @@ void ModulePrefs::SetModuleStatus( wxString fname, int iStatus ){
|
||||
|
||||
PrefsPanel *ModulePrefsFactory::Create(wxWindow *parent)
|
||||
{
|
||||
return new ModulePrefs(parent);
|
||||
wxASSERT(parent); // to justify safenew
|
||||
return safenew ModulePrefs(parent);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user