Fixed more uninitialized variables and two potential memory leaks.

This commit is contained in:
Robert Osfield
2002-07-22 12:41:55 +00:00
parent bfefb55a9f
commit 3dd07ea354
9 changed files with 36 additions and 12 deletions

View File

@@ -92,7 +92,7 @@ FTPolyGlyph::FTPolyGlyph( FT_Glyph glyph)
contourFlag = vectoriser->ContourFlag();
advance = glyph->advance.x >> 16;
osgDelete vectoriser;
vectoriser=0; // delete it, using ref_ptr.
if ( ( numContours < 1) || ( numPoints < 3))
return;