diff --git a/SWIG/Examples/python/import/base.h b/SWIG/Examples/python/import/base.h index be3cdef7d..5a266f68c 100644 --- a/SWIG/Examples/python/import/base.h +++ b/SWIG/Examples/python/import/base.h @@ -3,7 +3,7 @@ class Base { public: Base() { }; - ~Base() { }; + virtual ~Base() { }; virtual void A() { printf("I'm Base::A\n"); } diff --git a/SWIG/Examples/python/import_template/base.h b/SWIG/Examples/python/import_template/base.h index a56441e14..c755a6f9d 100644 --- a/SWIG/Examples/python/import_template/base.h +++ b/SWIG/Examples/python/import_template/base.h @@ -3,7 +3,7 @@ template class Base { public: Base() { }; - ~Base() { }; + virtual ~Base() { }; virtual void A() { printf("I'm Base::A\n"); }