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
9d725b17
Commit
9d725b17
authored
Apr 18, 2016
by
Matteo Bruni
Committed by
Alexandre Julliard
Apr 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Free old object data when reusing effect object.
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ebaa5ac7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
effect.c
dlls/d3dx9_36/effect.c
+4
-1
No files found.
dlls/d3dx9_36/effect.c
View file @
9d725b17
...
...
@@ -4774,10 +4774,13 @@ static HRESULT d3dx9_copy_data(struct d3dx9_base_effect *base, unsigned int obje
FIXME
(
"Overwriting object id %u!
\n
"
,
object_id
);
else
TRACE
(
"Overwriting object id 0.
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
object
->
data
);
object
->
data
=
NULL
;
}
read_dword
(
ptr
,
&
object
->
size
);
TRACE
(
"Data size: %#x
\n
"
,
object
->
size
);
TRACE
(
"Data size: %#x
.
\n
"
,
object
->
size
);
if
(
!
object
->
size
)
return
D3D_OK
;
...
...
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