mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 22:12:58 +02: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