]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/osx/popupwin.h
fixing overrelease and out-of-bounds write, fixes #13725
[wxWidgets.git] / include / wx / osx / popupwin.h
index cdfa6ef61cdf1f0d81971036e29fd32e8e29904d..4a429de67831f498eece5d0e81b1bd3ff60f6f8a 100644 (file)
@@ -27,9 +27,8 @@ public:
 
     bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
 
 
     bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
 
-    virtual bool Show(bool show);
+    virtual bool Show(bool show = true);
 
 
-protected:
     DECLARE_DYNAMIC_CLASS_NO_COPY(wxPopupWindow)
 };
 
     DECLARE_DYNAMIC_CLASS_NO_COPY(wxPopupWindow)
 };