Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
65974534
Commit
65974534
authored
Aug 04, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Release run info as soon as it's rendered to save some memory.
parent
720c4305
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
font.c
dlls/dwrite/font.c
+16
-1
No files found.
dlls/dwrite/font.c
View file @
65974534
...
...
@@ -2907,7 +2907,8 @@ static ULONG WINAPI glyphrunanalysis_Release(IDWriteGlyphRunAnalysis *iface)
TRACE
(
"(%p)->(%u)
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
IDWriteFontFace_Release
(
This
->
run
.
fontFace
);
if
(
This
->
run
.
fontFace
)
IDWriteFontFace_Release
(
This
->
run
.
fontFace
);
heap_free
(
This
->
glyphs
);
heap_free
(
This
->
advances
);
heap_free
(
This
->
offsets
);
...
...
@@ -3088,6 +3089,20 @@ static void glyphrunanalysis_render(struct dwrite_glyphrunanalysis *analysis, DW
IDWriteFontFace2_Release
(
fontface2
);
analysis
->
ready
|=
RUNANALYSIS_BITMAP
;
/* we don't need this anymore */
heap_free
(
analysis
->
glyphs
);
heap_free
(
analysis
->
advances
);
heap_free
(
analysis
->
offsets
);
IDWriteFontFace_Release
(
analysis
->
run
.
fontFace
);
analysis
->
glyphs
=
NULL
;
analysis
->
advances
=
NULL
;
analysis
->
offsets
=
NULL
;
analysis
->
run
.
glyphIndices
=
NULL
;
analysis
->
run
.
glyphAdvances
=
NULL
;
analysis
->
run
.
glyphOffsets
=
NULL
;
analysis
->
run
.
fontFace
=
NULL
;
}
static
HRESULT
WINAPI
glyphrunanalysis_CreateAlphaTexture
(
IDWriteGlyphRunAnalysis
*
iface
,
DWRITE_TEXTURE_TYPE
type
,
...
...
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