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
90239052
Commit
90239052
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_data() (Valgrind).
parent
bef432a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
d3drm.c
dlls/d3drm/d3drm.c
+7
-10
No files found.
dlls/d3drm/d3drm.c
View file @
90239052
...
...
@@ -1173,32 +1173,29 @@ static HRESULT load_data(IDirect3DRM3 *iface, IDirectXFileData *data_object, IID
IDirectXFileDataReference
*
reference
;
IDirectXFileBinary
*
binary
;
hr
=
IDirectXFileObject_QueryInterface
(
child
,
&
IID_IDirectXFileBinary
,
(
void
**
)
&
binary
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
IDirectXFileObject_QueryInterface
(
child
,
&
IID_IDirectXFileBinary
,
(
void
**
)
&
binary
)
))
{
FIXME
(
"Binary Object not supported yet
\n
"
);
IDirectXFileBinary_Release
(
binary
);
continue
;
}
hr
=
IDirectXFileObject_QueryInterface
(
child
,
&
IID_IDirectXFileData
,
(
void
**
)
&
data
);
if
(
SUCCEEDED
(
hr
))
else
if
(
SUCCEEDED
(
IDirectXFileObject_QueryInterface
(
child
,
&
IID_IDirectXFileData
,
(
void
**
)
&
data
)))
{
TRACE
(
"Found Data Object
\n
"
);
hr
=
load_data
(
iface
,
data
,
GUIDs
,
nb_GUIDs
,
LoadProc
,
ArgLP
,
LoadTextureProc
,
ArgLTP
,
frame
);
IDirectXFileData_Release
(
data
);
continue
;
}
hr
=
IDirectXFileObject_QueryInterface
(
child
,
&
IID_IDirectXFileDataReference
,
(
void
**
)
&
reference
);
if
(
SUCCEEDED
(
hr
))
else
if
(
SUCCEEDED
(
IDirectXFileObject_QueryInterface
(
child
,
&
IID_IDirectXFileDataReference
,
(
void
**
)
&
reference
)
))
{
TRACE
(
"Found Data Object Reference
\n
"
);
IDirectXFileDataReference_Resolve
(
reference
,
&
data
);
hr
=
load_data
(
iface
,
data
,
GUIDs
,
nb_GUIDs
,
LoadProc
,
ArgLP
,
LoadTextureProc
,
ArgLTP
,
frame
);
IDirectXFileData_Release
(
data
);
IDirectXFileDataReference_Release
(
reference
);
continue
;
}
IDirectXFileObject_Release
(
child
);
}
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