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
2e0a5625
Commit
2e0a5625
authored
Jun 29, 2022
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Jun 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat/tests: Fix resource leaks.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53235
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
parent
9678d0f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
mfplat.c
dlls/mfplat/tests/mfplat.c
+9
-4
No files found.
dlls/mfplat/tests/mfplat.c
View file @
2e0a5625
...
...
@@ -6639,11 +6639,12 @@ static void test_MFCreateDXSurfaceBuffer(void)
IMF2DBuffer2_Release
(
_2dbuffer2
);
IMFMediaBuffer_Release
(
buffer
);
IDirect3DDevice9_Release
(
device
);
done:
if
(
backbuffer
)
IDirect3DSurface9_Release
(
backbuffer
);
IDirect3D9_Release
(
d3d
);
ok
(
!
IDirect3D9_Release
(
d3d
),
"Unexpected refcount.
\n
"
);
DestroyWindow
(
window
);
}
...
...
@@ -7618,6 +7619,8 @@ static void test_sample_allocator_d3d9(void)
IMFVideoSampleAllocator_Release
(
allocator
);
IMFMediaType_Release
(
video_type
);
IDirect3DDeviceManager9_Release
(
d3d9_manager
);
IDirect3DDevice9_Release
(
d3d9_device
);
done:
IDirect3D9_Release
(
d3d9
);
...
...
@@ -7725,6 +7728,7 @@ static void test_sample_allocator_d3d11(void)
hr
=
IMFMediaBuffer_Unlock
(
buffer
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
IMFMediaBuffer_Release
(
buffer
);
IMFSample_Release
(
sample
);
IMFVideoSampleAllocator_Release
(
allocator
);
...
...
@@ -7867,7 +7871,7 @@ static void test_sample_allocator_d3d11(void)
static
void
test_sample_allocator_d3d12
(
void
)
{
IMFVideoSampleAllocator
*
allocator
;
IMFVideoSampleAllocator
*
allocator
=
NULL
;
D3D12_HEAP_PROPERTIES
heap_props
;
IMFDXGIDeviceManager
*
manager
;
D3D12_HEAP_FLAGS
heap_flags
;
...
...
@@ -7955,11 +7959,12 @@ static void test_sample_allocator_d3d12(void)
ID3D12Resource_Release
(
resource
);
IMFDXGIBuffer_Release
(
dxgi_buffer
);
IMFMediaBuffer_Release
(
buffer
);
IMFSample_Release
(
sample
);
IMFVideoSampleAllocator_Release
(
allocator
);
done:
if
(
allocator
)
IMFVideoSampleAllocator_Release
(
allocator
);
IMFDXGIDeviceManager_Release
(
manager
);
ID3D12Device_Release
(
device
);
}
...
...
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