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
87e55084
Commit
87e55084
authored
Jun 18, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx10/tests: Fix texture leak in check_resource_data.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
parent
07be1c30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
d3dx10.c
dlls/d3dx10_43/tests/d3dx10.c
+4
-3
No files found.
dlls/d3dx10_43/tests/d3dx10.c
View file @
87e55084
...
...
@@ -1237,7 +1237,7 @@ static void check_resource_data(ID3D10Resource *resource, const struct test_imag
ok_
(
__FILE__
,
line
)(
hr
==
S_OK
,
"Map failed, hr %#lx.
\n
"
,
hr
);
if
(
hr
!=
S_OK
)
{
ID3D10Texture2D_
Unmap
(
readback
,
0
);
ID3D10Texture2D_
Release
(
readback
);
return
;
}
...
...
@@ -1253,6 +1253,7 @@ static void check_resource_data(ID3D10Resource *resource, const struct test_imag
}
ID3D10Texture2D_Unmap
(
readback
,
0
);
ID3D10Texture2D_Release
(
readback
);
}
static
void
test_D3DX10UnsetAllDeviceObjects
(
void
)
...
...
@@ -2078,7 +2079,7 @@ static void test_D3DX10CreateAsyncTextureProcessor(void)
CoUninitialize
();
ID3D10Device_Release
(
device
);
ok
(
!
ID3D10Device_Release
(
device
),
"Unexpected refcount.
\n
"
);
}
static
void
test_get_image_info
(
void
)
...
...
@@ -2433,7 +2434,7 @@ static void test_create_texture(void)
CoUninitialize
();
ID3D10Device_Release
(
device
);
ok
(
!
ID3D10Device_Release
(
device
),
"Unexpected refcount.
\n
"
);
}
#define check_rect(rect, left, top, right, bottom) _check_rect(__LINE__, rect, left, top, right, bottom)
...
...
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