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
5e1d854e
Commit
5e1d854e
authored
Oct 21, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Oct 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Fix child leak.
parent
ff0e8250
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
meshbuilder.c
dlls/d3drm/meshbuilder.c
+10
-0
No files found.
dlls/d3drm/meshbuilder.c
View file @
5e1d854e
...
...
@@ -1260,6 +1260,7 @@ HRESULT load_mesh_data(IDirect3DRMMeshBuilder3* iface, LPDIRECTXFILEDATA pData)
if
(
FAILED
(
hr
))
{
hr
=
IDirectXFileObject_QueryInterface
(
child
,
&
IID_IDirectXFileDataReference
,
(
void
**
)
&
reference
);
IDirectXFileObject_Release
(
child
);
if
(
FAILED
(
hr
))
goto
end
;
...
...
@@ -1268,6 +1269,10 @@ HRESULT load_mesh_data(IDirect3DRMMeshBuilder3* iface, LPDIRECTXFILEDATA pData)
if
(
FAILED
(
hr
))
goto
end
;
}
else
{
IDirectXFileObject_Release
(
child
);
}
hr
=
Direct3DRMMaterial_create
(
&
material
);
if
(
FAILED
(
hr
))
...
...
@@ -1357,9 +1362,14 @@ HRESULT load_mesh_data(IDirect3DRMMeshBuilder3* iface, LPDIRECTXFILEDATA pData)
i
++
;
}
if
(
hr
==
S_OK
)
{
IDirectXFileObject_Release
(
child
);
WARN
(
"Found more sub-objects than expected
\n
"
);
}
else
if
(
hr
!=
DXFILEERR_NOMOREOBJECTS
)
{
goto
end
;
}
hr
=
S_OK
;
}
else
...
...
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