]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/stattext.mm
More lib and demo patches to drop the wx prefix (Jeff has been busy!)
[wxWidgets.git] / src / cocoa / stattext.mm
index 12a326714b4a6cadd0d27e6d88dabefa639b1a62..20ccf8ce4791b68fd05342bc8cba9d92995613ae 100644 (file)
@@ -60,7 +60,7 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID winid,
 
 wxStaticText::~wxStaticText()
 {
 
 wxStaticText::~wxStaticText()
 {
-    DisassociateNSTextField(m_cocoaNSView);
+    DisassociateNSTextField(GetNSTextField());
 }
 
 void wxStaticText::SetLabel(const wxString& label)
 }
 
 void wxStaticText::SetLabel(const wxString& label)