]> git.tdb.fi Git - libs/gl.git/commitdiff
Give Placeable a virtual destructor
authorMikko Rasa <tdb@tdb.fi>
Tue, 19 Dec 2017 16:28:20 +0000 (18:28 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 19 Dec 2017 16:28:20 +0000 (18:28 +0200)
source/placeable.h

index 2879f97550d69f6bb0f66bfb918a9fdb5291757a..35999a06e1df5f30820511167d0c107d8941a955 100644 (file)
@@ -16,8 +16,9 @@ protected:
        Matrix matrix;
 
        Placeable() { }
-
 public:
+       virtual ~Placeable() { }
+
        virtual void set_matrix(const Matrix &);
 
        /** Returns the Placeable's matrix.  This function returns a pointer for