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
dbee90a7
Commit
dbee90a7
authored
Apr 26, 2015
by
Aaryaman Vasishta
Committed by
Alexandre Julliard
Apr 30, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Move Release from frame2->frame3.
parent
1e3737f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
frame.c
dlls/d3drm/frame.c
+26
-26
No files found.
dlls/d3drm/frame.c
View file @
dbee90a7
...
...
@@ -485,32 +485,10 @@ static ULONG WINAPI d3drm_frame2_AddRef(IDirect3DRMFrame2 *iface)
static
ULONG
WINAPI
d3drm_frame2_Release
(
IDirect3DRMFrame2
*
iface
)
{
struct
d3drm_frame
*
frame
=
impl_from_IDirect3DRMFrame2
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
frame
->
ref
);
ULONG
i
;
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
iface
,
refcount
);
if
(
!
refcount
)
{
for
(
i
=
0
;
i
<
frame
->
nb_children
;
++
i
)
{
IDirect3DRMFrame3_Release
(
frame
->
children
[
i
]);
}
HeapFree
(
GetProcessHeap
(),
0
,
frame
->
children
);
for
(
i
=
0
;
i
<
frame
->
nb_visuals
;
++
i
)
{
IDirect3DRMVisual_Release
(
frame
->
visuals
[
i
]);
}
HeapFree
(
GetProcessHeap
(),
0
,
frame
->
visuals
);
for
(
i
=
0
;
i
<
frame
->
nb_lights
;
++
i
)
{
IDirect3DRMLight_Release
(
frame
->
lights
[
i
]);
}
HeapFree
(
GetProcessHeap
(),
0
,
frame
->
lights
);
HeapFree
(
GetProcessHeap
(),
0
,
frame
);
}
TRACE
(
"iface %p.
\n
"
,
iface
);
return
refcount
;
return
IDirect3DRMFrame3_Release
(
&
frame
->
IDirect3DRMFrame3_iface
)
;
}
static
HRESULT
WINAPI
d3drm_frame2_Clone
(
IDirect3DRMFrame2
*
iface
,
...
...
@@ -1248,10 +1226,32 @@ static ULONG WINAPI d3drm_frame3_AddRef(IDirect3DRMFrame3 *iface)
static
ULONG
WINAPI
d3drm_frame3_Release
(
IDirect3DRMFrame3
*
iface
)
{
struct
d3drm_frame
*
frame
=
impl_from_IDirect3DRMFrame3
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
frame
->
ref
);
ULONG
i
;
TRACE
(
"
iface %p.
\n
"
,
iface
);
TRACE
(
"
%p decreasing refcount to %u.
\n
"
,
iface
,
refcount
);
return
d3drm_frame2_Release
(
&
frame
->
IDirect3DRMFrame2_iface
);
if
(
!
refcount
)
{
for
(
i
=
0
;
i
<
frame
->
nb_children
;
++
i
)
{
IDirect3DRMFrame3_Release
(
frame
->
children
[
i
]);
}
HeapFree
(
GetProcessHeap
(),
0
,
frame
->
children
);
for
(
i
=
0
;
i
<
frame
->
nb_visuals
;
++
i
)
{
IDirect3DRMVisual_Release
(
frame
->
visuals
[
i
]);
}
HeapFree
(
GetProcessHeap
(),
0
,
frame
->
visuals
);
for
(
i
=
0
;
i
<
frame
->
nb_lights
;
++
i
)
{
IDirect3DRMLight_Release
(
frame
->
lights
[
i
]);
}
HeapFree
(
GetProcessHeap
(),
0
,
frame
->
lights
);
HeapFree
(
GetProcessHeap
(),
0
,
frame
);
}
return
refcount
;
}
static
HRESULT
WINAPI
d3drm_frame3_Clone
(
IDirect3DRMFrame3
*
iface
,
...
...
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