X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/735dec5e62b81766cd2c41884043f3407fb6d13c..8037b674e8b39d4ed3b621500237b5eb525a6de8:/include/wx/layout.h

diff --git a/include/wx/layout.h b/include/wx/layout.h
index 2af9f146a8..62655782b8 100644
--- a/include/wx/layout.h
+++ b/include/wx/layout.h
@@ -71,7 +71,7 @@ public:
 
     // note that default copy ctor and assignment operators are ok
 
-    ~wxIndividualLayoutConstraint(){}
+    virtual ~wxIndividualLayoutConstraint(){}
 
     void Set(wxRelationship rel, wxWindowBase *otherW, wxEdge otherE, int val = 0, int marg = wxLAYOUT_DEFAULT_MARGIN);
 
@@ -174,7 +174,7 @@ public:
 
     // note that default copy ctor and assignment operators are ok
 
-    ~wxLayoutConstraints(){}
+    virtual ~wxLayoutConstraints(){}
 
     bool SatisfyConstraints(wxWindowBase *win, int *noChanges);
     bool AreSatisfied() const