X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e8c1be041f43e843e0e57cb1591d38664e98d43c..065fa73213c49c01489cf6c44f788c7486cf4f8d:/include/wx/sizer.h diff --git a/include/wx/sizer.h b/include/wx/sizer.h index ebb3cc2404..53dde1a4bf 100644 --- a/include/wx/sizer.h +++ b/include/wx/sizer.h @@ -256,7 +256,7 @@ public: bool IsShown() const; void SetUserData(wxObject* userData) - { delete userData; m_userData = userData; } + { delete m_userData; m_userData = userData; } wxObject* GetUserData() const { return m_userData; } wxPoint GetPosition() const