Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
106dbd56
Commit
106dbd56
authored
Nov 08, 2007
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Fix some more memory leaks.
parent
66c6b84f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
usp10.c
dlls/usp10/tests/usp10.c
+5
-1
usp10.c
dlls/usp10/usp10.c
+2
-0
No files found.
dlls/usp10/tests/usp10.c
View file @
106dbd56
...
...
@@ -640,6 +640,7 @@ static void test_ScriptString(HDC hdc)
ReqWidth
,
&
Control
,
&
State
,
Dx
,
&
Tabdef
,
&
InClass
,
&
ssa
);
ok
(
hr
==
S_OK
,
"ScriptStringAnalyse should return S_OK not %08x
\n
"
,
hr
);
ScriptStringFree
(
&
ssa
);
/* test makes sure that a call with a valid pssa still works */
hr
=
ScriptStringAnalyse
(
hdc
,
teststr
,
len
,
Glyphs
,
Charset
,
Flags
,
...
...
@@ -844,8 +845,9 @@ static void test_ScriptCacheGetHeight(HDC hdc)
hr
=
ScriptCacheGetHeight
(
hdc
,
&
sc
,
&
height
);
ok
(
hr
==
S_OK
,
"expected S_OK, got 0x%08x
\n
"
,
hr
);
ok
(
height
>
0
,
"expected height > 0
\n
"
);
ScriptFreeCache
(
&
sc
);
}
static
void
test_ScriptGetGlyphABCWidth
(
HDC
hdc
)
...
...
@@ -867,6 +869,8 @@ static void test_ScriptGetGlyphABCWidth(HDC hdc)
hr
=
ScriptGetGlyphABCWidth
(
hdc
,
&
sc
,
'a'
,
&
abc
);
ok
(
hr
==
S_OK
,
"expected S_OK, got 0x%08x
\n
"
,
hr
);
ScriptFreeCache
(
&
sc
);
}
static
void
test_ScriptLayout
(
void
)
...
...
dlls/usp10/usp10.c
View file @
106dbd56
...
...
@@ -660,6 +660,7 @@ error:
usp_free
(
analysis
->
glyphs
);
usp_free
(
analysis
->
logattrs
);
usp_free
(
analysis
->
pItem
);
usp_free
(
analysis
->
sc
);
usp_free
(
analysis
);
return
hr
;
}
...
...
@@ -887,6 +888,7 @@ HRESULT WINAPI ScriptStringFree(SCRIPT_STRING_ANALYSIS *pssa)
usp_free
(
analysis
->
pItem
);
usp_free
(
analysis
->
logattrs
);
usp_free
(
analysis
->
sz
);
usp_free
(
analysis
->
sc
);
usp_free
(
analysis
);
if
(
invalid
)
return
E_INVALIDARG
;
...
...
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