mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-06 11:42:17 +01:00
Clone functions required by wxWidgets base classes can use safenew
This commit is contained in:
@@ -44,7 +44,7 @@ AppCommandEvent::~AppCommandEvent()
|
||||
// Clone is required by wxwidgets; implemented via copy constructor
|
||||
wxEvent *AppCommandEvent::Clone() const
|
||||
{
|
||||
return new AppCommandEvent(*this);
|
||||
return safenew AppCommandEvent(*this);
|
||||
}
|
||||
|
||||
/// Store a pointer to a command object
|
||||
|
||||
Reference in New Issue
Block a user