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
30633659
Commit
30633659
authored
Sep 26, 2002
by
Christian Costa
Committed by
Alexandre Julliard
Sep 26, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added allocation/desallocation of the light private data.
parent
74d0d4c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
d3dlight.c
dlls/ddraw/d3dlight.c
+4
-1
No files found.
dlls/ddraw/d3dlight.c
View file @
30633659
...
...
@@ -111,6 +111,7 @@ LPDIRECT3DLIGHT d3dlight_create(IDirect3D2Impl* d3d2)
IDirect3DLightImpl
*
light
;
light
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DLightImpl
));
light
->
private
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
mesa_d3dl_private
));
light
->
ref
=
1
;
ICOM_VTBL
(
light
)
=
&
light_vtable
;
light
->
d3d
.
d3d2
=
d3d2
;
...
...
@@ -129,6 +130,7 @@ LPDIRECT3DLIGHT d3dlight_create_dx3(IDirect3DImpl* d3d1)
IDirect3DLightImpl
*
light
;
light
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DLightImpl
));
light
->
private
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
mesa_d3dl_private
));
light
->
ref
=
1
;
ICOM_VTBL
(
light
)
=
&
light_vtable
;
...
...
@@ -173,9 +175,10 @@ static ULONG WINAPI IDirect3DLightImpl_AddRef(LPDIRECT3DLIGHT iface)
static
ULONG
WINAPI
IDirect3DLightImpl_Release
(
LPDIRECT3DLIGHT
iface
)
{
ICOM_THIS
(
IDirect3DLightImpl
,
iface
);
FIXM
E
(
"(%p)->() decrementing from %lu.
\n
"
,
This
,
This
->
ref
);
TRAC
E
(
"(%p)->() decrementing from %lu.
\n
"
,
This
,
This
->
ref
);
if
(
!--
(
This
->
ref
))
{
HeapFree
(
GetProcessHeap
(),
0
,
This
->
private
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
0
;
}
...
...
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