X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/449c567346a1b3937e532cd87aac007faad76b04..d4b73b1b8e585418459362c9bf9173aa21da8c41:/src/cocoa/stattext.mm?ds=sidebyside diff --git a/src/cocoa/stattext.mm b/src/cocoa/stattext.mm index 12a326714b..20ccf8ce47 100644 --- a/src/cocoa/stattext.mm +++ b/src/cocoa/stattext.mm @@ -60,7 +60,7 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID winid, wxStaticText::~wxStaticText() { - DisassociateNSTextField(m_cocoaNSView); + DisassociateNSTextField(GetNSTextField()); } void wxStaticText::SetLabel(const wxString& label)