Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
99061dfc
Commit
99061dfc
authored
Jun 30, 2009
by
Chong Yidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* xftfont.c (xftfont_open): Avoid passing NULL argument to
XftLockFace.
parent
edb54f27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
src/ChangeLog
src/ChangeLog
+5
-0
src/xftfont.c
src/xftfont.c
+5
-4
No files found.
src/ChangeLog
View file @
99061dfc
2009-06-30 Chong Yidong <cyd@stupidchicken.com>
* xftfont.c (xftfont_open): Avoid passing NULL argument to
XftLockFace.
2009-06-30 Jason Rumney <jasonr@gnu.org>
* w32term.c (w32_initialize): Use GetModuleHandle for library that
...
...
src/xftfont.c
View file @
99061dfc
...
...
@@ -287,14 +287,15 @@ xftfont_open (f, entity, pixel_size)
match
=
XftFontMatch
(
display
,
FRAME_X_SCREEN_NUMBER
(
f
),
pat
,
&
result
);
FcPatternDestroy
(
pat
);
xftfont
=
XftFontOpenPattern
(
display
,
match
);
ft_face
=
XftLockFace
(
xftfont
);
UNBLOCK_INPUT
;
if
(
!
xftfont
)
if
(
!
xftfont
)
{
UNBLOCK_INPUT
;
XftPatternDestroy
(
match
);
return
Qnil
;
}
ft_face
=
XftLockFace
(
xftfont
);
UNBLOCK_INPUT
;
/* We should not destroy PAT here because it is kept in XFTFONT and
destroyed automatically when XFTFONT is closed. */
font_object
=
font_make_object
(
VECSIZE
(
struct
xftfont_info
),
entity
,
size
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment