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
ee209a93
Commit
ee209a93
authored
Nov 08, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat/tests: Shut down the media source in test_create_from_file_handler_callback_Invoke().
Break its reference count cycle so that we don't leak it.
parent
dfa0c9d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
mfplat.c
dlls/mfplat/tests/mfplat.c
+14
-4
No files found.
dlls/mfplat/tests/mfplat.c
View file @
ee209a93
...
@@ -781,15 +781,25 @@ static HRESULT WINAPI test_create_from_file_handler_callback_Invoke(IMFAsyncCall
...
@@ -781,15 +781,25 @@ static HRESULT WINAPI test_create_from_file_handler_callback_Invoke(IMFAsyncCall
hr
=
IMFSchemeHandler_EndCreateObject
(
handler
,
result
,
&
obj_type
,
&
object
);
hr
=
IMFSchemeHandler_EndCreateObject
(
handler
,
result
,
&
obj_type
,
&
object
);
ok
(
hr
==
S_OK
,
"Failed to create an object, hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to create an object, hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
obj_type
==
MF_OBJECT_BYTESTREAM
,
"Got object type %#x.
\n
"
,
obj_type
);
if
(
SUCCEEDED
(
hr
))
hr
=
IMFAsyncResult_GetObject
(
result
,
(
IUnknown
**
)
&
object2
);
ok
(
hr
==
E_POINTER
,
"Unexpected hr %#lx.
\n
"
,
hr
);
if
(
obj_type
==
MF_OBJECT_MEDIASOURCE
)
{
{
hr
=
IMFAsyncResult_GetObject
(
result
,
&
object2
);
IMFMediaSource
*
media_source
;
ok
(
hr
==
E_POINTER
,
"Unexpected hr %#lx.
\n
"
,
hr
);
IUnknown_Release
(
object
);
hr
=
IUnknown_QueryInterface
(
object
,
&
IID_IMFMediaSource
,
(
void
**
)
&
media_source
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IMFMediaSource_Shutdown
(
media_source
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
IMFMediaSource_Release
(
media_source
);
}
}
IUnknown_Release
(
object
);
SetEvent
(
callback
->
event
);
SetEvent
(
callback
->
event
);
return
S_OK
;
return
S_OK
;
...
...
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