aboutsummaryrefslogtreecommitdiffstats
path: root/www/firefox-esr/files
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2006-12-16 04:57:41 +0800
committermarcus <marcus@FreeBSD.org>2006-12-16 04:57:41 +0800
commit3ae4f002cb66b82a7437564528a5f239b3528d5d (patch)
treebafda9dab4b42fb72d3185106424396ecbccc9fe /www/firefox-esr/files
parent02acc8c160735627ff4610cde94c7891f29d78f6 (diff)
downloadfreebsd-ports-gnome-3ae4f002cb66b82a7437564528a5f239b3528d5d.tar.gz
freebsd-ports-gnome-3ae4f002cb66b82a7437564528a5f239b3528d5d.tar.zst
freebsd-ports-gnome-3ae4f002cb66b82a7437564528a5f239b3528d5d.zip
Fix a double-free while performing print operations which could trigger a
segmentation fault if malloc debugging was enabled. Reported by: dougb
Diffstat (limited to 'www/firefox-esr/files')
-rw-r--r--www/firefox-esr/files/patch-gfx_src_ps_nsFontMetricsPS.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/www/firefox-esr/files/patch-gfx_src_ps_nsFontMetricsPS.cpp b/www/firefox-esr/files/patch-gfx_src_ps_nsFontMetricsPS.cpp
new file mode 100644
index 000000000000..07014d87fa82
--- /dev/null
+++ b/www/firefox-esr/files/patch-gfx_src_ps_nsFontMetricsPS.cpp
@@ -0,0 +1,26 @@
+--- gfx/src/ps/nsFontMetricsPS.cpp.orig Fri Dec 15 01:42:25 2006
++++ gfx/src/ps/nsFontMetricsPS.cpp Fri Dec 15 01:41:20 2006
+@@ -1037,8 +1037,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;
+@@ -2327,8 +2329,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;