mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-09 22:53:55 +01:00
more safenew
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
|
||||
**********************************************************************/
|
||||
|
||||
#include "../../Audacity.h"
|
||||
#include <AudioUnit/AudioUnit.h>
|
||||
#include <AudioUnit/AudioComponent.h>
|
||||
#include <AudioUnit/AudioUnitProperties.h>
|
||||
@@ -32,6 +33,7 @@
|
||||
#endif
|
||||
|
||||
#include "AUControl.h"
|
||||
#include "../../MemoryX.h"
|
||||
|
||||
@interface AUView : NSView
|
||||
{
|
||||
@@ -173,7 +175,8 @@ bool AUControl::Create(wxWindow *parent, AudioComponent comp, AudioUnit unit, bo
|
||||
return false;
|
||||
}
|
||||
|
||||
SetPeer(new AUControlImpl(this, mAUView));
|
||||
// wxWidgets takes ownership so safenew
|
||||
SetPeer(safenew AUControlImpl(this, mAUView));
|
||||
|
||||
if (mHIView)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user