diff --git a/src/os2/radiobox.cpp b/src/os2/radiobox.cpp index 94792b5217..ce228dc310 100644 --- a/src/os2/radiobox.cpp +++ b/src/os2/radiobox.cpp @@ -266,7 +266,7 @@ bool wxRadioBox::Create( , const wxString& rsName ) { - wxCArrayString(asChoices); + wxCArrayString chs(asChoices); return Create(pParent, vId, rsTitle, rPos, rSize, chs.GetCount(), chs.GetStrings(), nMajorDim, lStyle, rVal, rsName);