From 7cf7d8fadbfb11ea7fc81d26911cf09041f0dafb Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 16 Jul 2002 10:16:34 +0000 Subject: [PATCH] Added protected destrcutor to TemplateArray. --- include/osg/Array | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/osg/Array b/include/osg/Array index 7d4b81a4e..eda284698 100644 --- a/include/osg/Array +++ b/include/osg/Array @@ -102,6 +102,10 @@ class TemplateArray : public Array, public std::vector virtual void accept(ArrayVisitor& av) { av.apply(*this); } virtual const GLvoid* dataPointer() const { if (!empty()) return &front(); else return 0; } + + protected: + + virtual ~Array() {} }; typedef TemplateArray ByteArray;