diff --git a/include/osgText/Font b/include/osgText/Font index ce299ab1f..c9a561b4d 100644 --- a/include/osgText/Font +++ b/include/osgText/Font @@ -199,6 +199,9 @@ public: { public: + FontImplementation(): + osg::Referenced(true) {} + virtual std::string getFileName() const = 0; /** Set the pixel width and height hint.*/ diff --git a/src/osgText/Font.cpp b/src/osgText/Font.cpp index f121cba75..edd5e9831 100644 --- a/src/osgText/Font.cpp +++ b/src/osgText/Font.cpp @@ -139,6 +139,7 @@ osgText::Font* osgText::readFontStream(std::istream& stream, const osgDB::Reader Font::Font(FontImplementation* implementation): + osg::Object(true), _width(16), _height(16), _margin(1),