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
51c3203e
Commit
51c3203e
authored
Mar 14, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
Mar 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Free old data after addrefing the new one.
parent
6a34d4b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
wined3d.h
include/wine/wined3d.h
+4
-3
No files found.
include/wine/wined3d.h
View file @
51c3203e
...
...
@@ -2323,9 +2323,6 @@ static inline HRESULT wined3d_private_store_set_private_data(struct wined3d_priv
if
(
!
(
d
=
HeapAlloc
(
GetProcessHeap
(),
0
,
FIELD_OFFSET
(
struct
wined3d_private_data
,
content
.
data
[
data_size
]))))
return
E_OUTOFMEMORY
;
old
=
wined3d_private_store_get_private_data
(
store
,
guid
);
if
(
old
)
wined3d_private_store_free_private_data
(
store
,
old
);
d
->
tag
=
*
guid
;
d
->
flags
=
flags
;
...
...
@@ -2334,6 +2331,10 @@ static inline HRESULT wined3d_private_store_set_private_data(struct wined3d_priv
memcpy
(
d
->
content
.
data
,
ptr
,
data_size
);
if
(
flags
&
WINED3DSPD_IUNKNOWN
)
IUnknown_AddRef
(
d
->
content
.
object
);
old
=
wined3d_private_store_get_private_data
(
store
,
guid
);
if
(
old
)
wined3d_private_store_free_private_data
(
store
,
old
);
list_add_tail
(
&
store
->
content
,
&
d
->
entry
);
return
WINED3D_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