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
274b091c
Commit
274b091c
authored
Feb 15, 2017
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Free the swapchain context array in swapchain_destroy_contexts().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
908010d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
device.c
dlls/wined3d/device.c
+2
-5
swapchain.c
dlls/wined3d/swapchain.c
+2
-0
No files found.
dlls/wined3d/device.c
View file @
274b091c
...
...
@@ -4528,7 +4528,7 @@ void CDECL wined3d_device_evict_managed_resources(struct wined3d_device *device)
}
}
static
void
delete_opengl_contexts
(
struct
wined3d_device
*
device
,
struct
wined3d_swapchain
*
swapchain
)
static
void
wined3d_device_delete_opengl_contexts
(
struct
wined3d_device
*
device
)
{
struct
wined3d_resource
*
resource
,
*
cursor
;
struct
wined3d_context
*
context
;
...
...
@@ -4561,9 +4561,6 @@ static void delete_opengl_contexts(struct wined3d_device *device, struct wined3d
else
context_destroy
(
device
,
device
->
contexts
[
0
]);
}
HeapFree
(
GetProcessHeap
(),
0
,
swapchain
->
context
);
swapchain
->
context
=
NULL
;
}
static
HRESULT
create_primary_opengl_context
(
struct
wined3d_device
*
device
,
struct
wined3d_swapchain
*
swapchain
)
...
...
@@ -4827,7 +4824,7 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
state_cleanup
(
&
device
->
state
);
if
(
device
->
d3d_initialized
)
delete_opengl_contexts
(
device
,
swapchain
);
wined3d_device_delete_opengl_contexts
(
device
);
state_init
(
&
device
->
state
,
&
device
->
fb
,
&
device
->
adapter
->
gl_info
,
&
device
->
adapter
->
d3d_info
,
WINED3D_STATE_INIT_DEFAULT
);
...
...
dlls/wined3d/swapchain.c
View file @
274b091c
...
...
@@ -1136,7 +1136,9 @@ void swapchain_destroy_contexts(struct wined3d_swapchain *swapchain)
{
context_destroy
(
swapchain
->
device
,
swapchain
->
context
[
i
]);
}
HeapFree
(
GetProcessHeap
(),
0
,
swapchain
->
context
);
swapchain
->
num_contexts
=
0
;
swapchain
->
context
=
NULL
;
}
struct
wined3d_context
*
swapchain_get_context
(
struct
wined3d_swapchain
*
swapchain
)
...
...
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