mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-05 11:35:01 +00:00
Fix a crash that can occur when using TrueType fonts. This should have
gone in with X.Org 6.8.2, but since we're using the external libXft library, it was missed. Reported by: adamw Obtained from: Freedesktop.org CVS Approved by: portmgr (implicit)
This commit is contained in:
parent
8abecbc13e
commit
fc86da016c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=132091
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= libXft
|
||||
PORTVERSION= 2.1.6
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= x11-fonts
|
||||
MASTER_SITES= http://freedesktop.org/~ajax/xlibs-release/
|
||||
|
||||
|
12
x11-fonts/libXft/files/patch-xftfreetype.c
Normal file
12
x11-fonts/libXft/files/patch-xftfreetype.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- xftfreetype.c.orig Sun Mar 27 18:51:12 2005
|
||||
+++ xftfreetype.c Sun Mar 27 18:51:53 2005
|
||||
@@ -289,7 +289,8 @@ _XftReleaseFile (XftFtFile *f)
|
||||
if (f->face)
|
||||
FT_Done_Face (f->face);
|
||||
}
|
||||
- XftMemFree (XFT_MEM_FILE, sizeof (XftFtFile) + strlen (f->file) + 1);
|
||||
+ XftMemFree (XFT_MEM_FILE,
|
||||
+ sizeof (XftFtFile) + (f->file ? strlen (f->file) + 1 : 0));
|
||||
free (f);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user