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
8fdeaad5
Commit
8fdeaad5
authored
May 14, 2013
by
Jan Djärv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* nsfont.m (ns_spec_to_descriptor): Retain and autorelease fdesc.
Fixes: debbugs:14375
parent
469bfed9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
src/ChangeLog
src/ChangeLog
+5
-0
src/nsfont.m
src/nsfont.m
+5
-2
No files found.
src/ChangeLog
View file @
8fdeaad5
2013-05-14 Jan Djärv <jan.h.d@swipnet.se>
* nsfont.m (ns_spec_to_descriptor): Retain and autorelease
fdesc (Bug#14375).
2013-05-12 Paul Eggert <eggert@cs.ucla.edu>
* image.c (gif_load): Check that subimages fit (Bug#14345).
...
...
src/nsfont.m
View file @
8fdeaad5
...
...
@@ -151,10 +151,13 @@ static void ns_glyph_metrics (struct nsfont_info *font_info,
if
([
tdict
count
]
>
0
)
[
fdAttrs
setObject
:
tdict
forKey
:
NSFontTraitsAttribute
];
fdesc
=
[
NSFontDescriptor
fontDescriptorWithFontAttributes
:
fdAttrs
];
fdesc
=
[[[
NSFontDescriptor
fontDescriptorWithFontAttributes
:
fdAttrs
]
retain
]
autorelease
];
if
(
family
!=
nil
)
{
fdesc
=
[
fdesc
fontDescriptorWithFamily
:
family
];
NSFontDescriptor
*
fdesc2
=
[
fdesc
fontDescriptorWithFamily
:
family
];
fdesc
=
[[
fdesc2
retain
]
autorelease
];
}
[
fdAttrs
release
];
...
...
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