mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-17 03:36:32 +01:00
wxWindow takes ownership of its wxAccessible, so we can use safenew.
This commit is contained in:
@@ -59,8 +59,7 @@ KeyView::KeyView(wxWindow *parent,
|
||||
{
|
||||
#if wxUSE_ACCESSIBILITY
|
||||
// Create and set accessibility object
|
||||
mAx = new KeyViewAx(this);
|
||||
SetAccessible(mAx);
|
||||
SetAccessible(mAx = safenew KeyViewAx(this));
|
||||
#endif
|
||||
|
||||
// The default view
|
||||
|
||||
Reference in New Issue
Block a user