1
0
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:
Paul Licameli
2016-05-06 21:03:37 -04:00
parent e59617f176
commit db137ddf76
11 changed files with 15 additions and 18 deletions

View File

@@ -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