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
b5a7853b
Commit
b5a7853b
authored
Jul 08, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Remove redundant NULL checks before CoTaskMemFree().
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
69039f06
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
11 deletions
+5
-11
avidec.c
dlls/quartz/avidec.c
+2
-5
filtermapper.c
dlls/quartz/filtermapper.c
+1
-2
mpegsplit.c
dlls/quartz/mpegsplit.c
+1
-2
filtermapper.c
dlls/quartz/tests/filtermapper.c
+1
-2
No files found.
dlls/quartz/avidec.c
View file @
b5a7853b
...
...
@@ -349,11 +349,8 @@ static HRESULT WINAPI AVIDec_BreakConnect(TransformFilter *tf, PIN_DIRECTION dir
{
if
(
This
->
hvid
)
ICClose
(
This
->
hvid
);
if
(
This
->
pBihIn
)
CoTaskMemFree
(
This
->
pBihIn
);
if
(
This
->
pBihOut
)
CoTaskMemFree
(
This
->
pBihOut
);
CoTaskMemFree
(
This
->
pBihIn
);
CoTaskMemFree
(
This
->
pBihOut
);
This
->
hvid
=
NULL
;
This
->
pBihIn
=
NULL
;
This
->
pBihOut
=
NULL
;
...
...
dlls/quartz/filtermapper.c
View file @
b5a7853b
...
...
@@ -609,8 +609,7 @@ static void FM2_DeleteRegFilter(REGFILTER2 * prf2)
for
(
i
=
0
;
i
<
prf2
->
u
.
s2
.
cPins2
;
i
++
)
{
UINT
j
;
if
(
prf2
->
u
.
s2
.
rgPins2
[
i
].
clsPinCategory
)
CoTaskMemFree
((
LPVOID
)
prf2
->
u
.
s2
.
rgPins2
[
i
].
clsPinCategory
);
CoTaskMemFree
((
void
*
)
prf2
->
u
.
s2
.
rgPins2
[
i
].
clsPinCategory
);
for
(
j
=
0
;
j
<
prf2
->
u
.
s2
.
rgPins2
[
i
].
nMediaTypes
;
j
++
)
{
...
...
dlls/quartz/mpegsplit.c
View file @
b5a7853b
...
...
@@ -589,8 +589,7 @@ static HRESULT MPEGSplitter_pre_connect(IPin *iface, IPin *pConnectPin, ALLOCATO
if
(
FAILED
(
hr
))
{
if
(
amt
.
pbFormat
)
CoTaskMemFree
(
amt
.
pbFormat
);
CoTaskMemFree
(
amt
.
pbFormat
);
ERR
(
"Could not create pin for MPEG audio stream (%x)
\n
"
,
hr
);
break
;
}
...
...
dlls/quartz/tests/filtermapper.c
View file @
b5a7853b
...
...
@@ -528,8 +528,7 @@ static void test_parse_filter_data(void)
ok
(
pRegFilter
->
dwMerit
==
0x5fffff
,
"Incorrect merit returned
\n
"
);
out:
if
(
pRegFilter
)
CoTaskMemFree
(
pRegFilter
);
CoTaskMemFree
(
pRegFilter
);
if
(
psa
)
{
SafeArrayUnaccessData
(
psa
);
...
...
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