openbsd-ports/devel/xulrunner/patches/patch-gfx_src_ps_nsFontMetricsPS_cpp
kurt 96429b6933 import xulrunner 1.8.0.4
XULRunner is a single "gecko runtime" installable package that can be
used to bootstrap multiple XUL+XPCOM applications that are as rich as
Firefox and Thunderbird.  It will provide mechanisms for installing,
upgrading, and uninstalling these applications. XULRunner will also
provide libxul, a solution which allows the embedding of Mozilla
technologies in other projects and products.

Based on an initial port by James Wright <jamesw at bsdhosting.co.za>.
Improvements and okay steven@
2007-01-05 14:44:47 +00:00

28 lines
768 B
Plaintext

$OpenBSD: patch-gfx_src_ps_nsFontMetricsPS_cpp,v 1.1.1.1 2007/01/05 14:44:48 kurt Exp $
--- gfx/src/ps/nsFontMetricsPS.cpp.orig Tue Dec 20 11:16:58 2005
+++ gfx/src/ps/nsFontMetricsPS.cpp Tue Dec 20 11:17:37 2005
@@ -1033,8 +1033,10 @@ nsFontPSXft::Init(nsXftEntry* aEntry,
nsFontPSXft::~nsFontPSXft()
{
- if (mEntry->mFace)
+ if (mEntry->mFace) {
FT_Done_Face(mEntry->mFace);
+ mEntry->mFace = nsnull;
+ }
if (FT_Done_FreeType(mFreeTypeLibrary))
return;
@@ -2323,8 +2325,10 @@ nsXftType1Generator::Init(nsXftEntry* aE
nsXftType1Generator::~nsXftType1Generator()
{
- if (mEntry->mFace)
+ if (mEntry->mFace) {
FT_Done_Face(mEntry->mFace);
+ mEntry->mFace = nsnull;
+ }
if (FT_Done_FreeType(mFreeTypeLibrary))
return;