remove unneeded delete (we use a SmartPtr here) .. this fixes a segfault
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 12 Nov 2005 18:03:01 +0000 (18:03 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 12 Nov 2005 18:03:01 +0000 (18:03 +0000)
lib/gdi/font.cpp

index b1b4fa9..1f09d1b 100644 (file)
@@ -206,11 +206,9 @@ float fontRenderClass::getLineHeight(const gFont& font)
        }
        int linegap=current_face->size->metrics.height-(current_face->size->metrics.ascender+current_face->size->metrics.descender);
        float height=(current_face->size->metrics.ascender+current_face->size->metrics.descender+linegap)/64.0;
        }
        int linegap=current_face->size->metrics.height-(current_face->size->metrics.ascender+current_face->size->metrics.descender);
        float height=(current_face->size->metrics.ascender+current_face->size->metrics.descender+linegap)/64.0;
-       delete fnt;
        return height;
 }
 
        return height;
 }
 
-
 fontRenderClass::~fontRenderClass()
 {
        singleLock s(ftlock);
 fontRenderClass::~fontRenderClass()
 {
        singleLock s(ftlock);