mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-05 22:59:29 +02:00
Correct a naked new
This commit is contained in:
parent
5ecd090266
commit
921d7f28ef
@ -2228,8 +2228,11 @@ bool LV2Effect::BuildFancy()
|
|||||||
g_signal_connect(widget, "size-request", G_CALLBACK(LV2Effect::size_request), this);
|
g_signal_connect(widget, "size-request", G_CALLBACK(LV2Effect::size_request), this);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mNativeWin = new NativeWindow();
|
Destroy_ptr< NativeWindow > uNativeWin{ safenew NativeWindow() };
|
||||||
mNativeWin->Create(mParent, widget);
|
if ( !uNativeWin->Create(mParent, widget) )
|
||||||
|
return false;
|
||||||
|
mNativeWin = uNativeWin.release();
|
||||||
|
|
||||||
mNativeWin->Bind(wxEVT_SIZE, &LV2Effect::OnSize, this);
|
mNativeWin->Bind(wxEVT_SIZE, &LV2Effect::OnSize, this);
|
||||||
|
|
||||||
// The plugin called the LV2UI_Resize::ui_resize function to set the size before
|
// The plugin called the LV2UI_Resize::ui_resize function to set the size before
|
||||||
|
Loading…
x
Reference in New Issue
Block a user