X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/feb8276801ff0a375d5a9221b40d6b45d4552656..a0c2e4a050f4f2e8d344483ba4cfaa8b08a1fe87:/include/wx/cocoa/NSButton.h

diff --git a/include/wx/cocoa/NSButton.h b/include/wx/cocoa/NSButton.h
index 2a90d41451..f2a2800f5f 100644
--- a/include/wx/cocoa/NSButton.h
+++ b/include/wx/cocoa/NSButton.h
@@ -23,13 +23,15 @@ class wxCocoaNSButton
     WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSButton);
 public:
     void AssociateNSButton(WX_NSButton cocoaNSButton);
-    inline void DisassociateNSButton(WX_NSButton cocoaNSButton)
+    void DisassociateNSButton(WX_NSButton cocoaNSButton)
     {
         if(cocoaNSButton)
             sm_cocoaHash.erase(cocoaNSButton);
     }
 
     virtual void Cocoa_wxNSButtonAction(void) = 0;
+    virtual ~wxCocoaNSButton() { }
+
 protected:
     static const wxObjcAutoRefFromAlloc<struct objc_object*> sm_cocoaTarget;
 };