summaryrefslogtreecommitdiff
path: root/psprint/source/fontsubset/gsub.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'psprint/source/fontsubset/gsub.cxx')
-rw-r--r--psprint/source/fontsubset/gsub.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/psprint/source/fontsubset/gsub.cxx b/psprint/source/fontsubset/gsub.cxx
index df3efd23e2f2..f49eb54c575a 100644
--- a/psprint/source/fontsubset/gsub.cxx
+++ b/psprint/source/fontsubset/gsub.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: gsub.cxx,v $
- * $Revision: 1.12 $
+ * $Revision: 1.12.18.1 $
*
* This file is part of OpenOffice.org.
*
@@ -322,10 +322,16 @@ int ReadGSUB( struct _TrueTypeFont* pTTFile,
}
}
}
-
return true;
}
+void ReleaseGSUB(struct _TrueTypeFont* pTTFile)
+{
+ GlyphSubstitution* pGlyphSubstitution = (GlyphSubstitution*)pTTFile->pGSubstitution;
+ if( pGlyphSubstitution )
+ delete pGlyphSubstitution;
+}
+
int UseGSUB( struct _TrueTypeFont* pTTFile, int nGlyph, int /*wmode*/ )
{
GlyphSubstitution* pGlyphSubstitution = (GlyphSubstitution*)pTTFile->pGSubstitution;