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
cbf78c5d
Commit
cbf78c5d
authored
Apr 20, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Release the wined3d surface first in ddraw_surface_destroy().
parent
25c0941e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
surface.c
dlls/ddraw/surface.c
+3
-4
No files found.
dlls/ddraw/surface.c
View file @
cbf78c5d
...
...
@@ -244,6 +244,9 @@ void ddraw_surface_destroy(IDirectDrawSurfaceImpl *This)
WARN
(
"(%p): Destroying surface with refount %d
\n
"
,
This
,
This
->
ref
);
}
if
(
This
->
WineD3DSurface
)
IWineD3DSurface_Release
(
This
->
WineD3DSurface
);
/* Check for attached surfaces and detach them */
if
(
This
->
first_attached
!=
This
)
{
...
...
@@ -276,10 +279,6 @@ void ddraw_surface_destroy(IDirectDrawSurfaceImpl *This)
}
}
/* Now destroy the surface. Wait: It could have been released if we are a texture */
if
(
This
->
WineD3DSurface
)
IWineD3DSurface_Release
(
This
->
WineD3DSurface
);
/* Having a texture handle set implies that the device still exists */
if
(
This
->
Handle
)
{
...
...
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