mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-07 20:22:13 +01:00
Use macro safenew for many allocations of wxWindow subclasses
This commit is contained in:
@@ -134,7 +134,7 @@ void SpectralSelectionBar::Populate()
|
||||
_("Center frequency and Width"),
|
||||
_("Low and High Frequencies"),
|
||||
};
|
||||
mChoice = new wxChoice
|
||||
mChoice = safenew wxChoice
|
||||
(this, OnChoiceID, wxDefaultPosition, wxDefaultSize, 2, choices,
|
||||
0, wxDefaultValidator, _("Spectral Selection"));
|
||||
mChoice->SetSelection(mbCenterAndWidth ? 0 : 1);
|
||||
|
||||
Reference in New Issue
Block a user