add virtual destructors where needed

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5873 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-04-11 12:10:44 +00:00
commit f6340798c4
22 changed files with 55 additions and 4 deletions

View file

@ -7,6 +7,7 @@
/* Define the class internally, but don't tell SWIG about it */
class Foo {
public:
virtual ~Foo() {}
virtual char *blah() {
return (char *) "Foo::blah";
}
@ -21,6 +22,7 @@ class Foo;
class Bar : public Foo {
public:
virtual ~Bar() {}
virtual char *blah() {
return (char *) "Bar::blah";
};