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
39fc8553
Commit
39fc8553
authored
Apr 28, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Release the wined3d query in d3d10_query_Release() (Valgrind).
parent
0a121076
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
async.c
dlls/d3d10core/async.c
+7
-6
No files found.
dlls/d3d10core/async.c
View file @
39fc8553
...
...
@@ -66,16 +66,17 @@ static ULONG STDMETHODCALLTYPE d3d10_query_AddRef(ID3D10Query *iface)
static
ULONG
STDMETHODCALLTYPE
d3d10_query_Release
(
ID3D10Query
*
iface
)
{
struct
d3d10_query
*
This
=
impl_from_ID3D10Query
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
This
->
refcount
);
struct
d3d10_query
*
query
=
impl_from_ID3D10Query
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
query
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
This
,
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
query
,
refcount
);
if
(
!
refcount
)
{
ID3D10Device1_Release
(
This
->
device
);
wined3d_private_store_cleanup
(
&
This
->
private_store
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
ID3D10Device1_Release
(
query
->
device
);
wined3d_query_decref
(
query
->
wined3d_query
);
wined3d_private_store_cleanup
(
&
query
->
private_store
);
HeapFree
(
GetProcessHeap
(),
0
,
query
);
}
return
refcount
;
...
...
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