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
23f0e970
Commit
23f0e970
authored
Apr 30, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
May 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Release the child object after we're done with it in load_mesh_data() (Valgrind).
parent
90239052
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
meshbuilder.c
dlls/d3drm/meshbuilder.c
+12
-10
No files found.
dlls/d3drm/meshbuilder.c
View file @
23f0e970
...
...
@@ -1250,20 +1250,21 @@ HRESULT load_mesh_data(IDirect3DRMMeshBuilder3 *iface, IDirectXFileData *pData,
IDirectXFileData
*
data
;
char
**
filename
;
hr
=
IDirectXFileObject_QueryInterface
(
material_child
,
&
IID_IDirectXFileData
,
(
void
**
)
&
data
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
=
IDirectXFileObject_QueryInterface
(
material_child
,
&
IID_IDirectXFileData
,
(
void
**
)
&
data
)
))
{
IDirectXFileDataReference
*
reference
;
hr
=
IDirectXFileObject_QueryInterface
(
material_child
,
&
IID_IDirectXFileDataReference
,
(
void
**
)
&
reference
);
if
(
FAILED
(
hr
))
goto
end
;
hr
=
IDirectXFileDataReference_Resolve
(
reference
,
&
data
);
IDirectXFileDataReference_Release
(
reference
);
if
(
FAILED
(
hr
))
goto
end
;
if
(
SUCCEEDED
(
IDirectXFileObject_QueryInterface
(
material_child
,
&
IID_IDirectXFileDataReference
,
(
void
**
)
&
reference
)))
{
hr
=
IDirectXFileDataReference_Resolve
(
reference
,
&
data
);
IDirectXFileDataReference_Release
(
reference
);
}
}
IDirectXFileObject_Release
(
material_child
);
if
(
FAILED
(
hr
))
goto
end
;
hr
=
IDirectXFileData_GetType
(
data
,
&
guid
);
if
(
hr
!=
DXFILE_OK
)
...
...
@@ -1308,6 +1309,7 @@ HRESULT load_mesh_data(IDirect3DRMMeshBuilder3 *iface, IDirectXFileData *pData,
}
}
}
IDirectXFileData_Release
(
data
);
}
else
if
(
hr
!=
DXFILEERR_NOMOREOBJECTS
)
{
...
...
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