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
4a416f8d
Commit
4a416f8d
authored
Apr 29, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 30, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Release the surface clipper (if any) in ddraw_surface_wined3d_object_destroyed() (Valgrind).
parent
eb27944e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
4 deletions
+15
-4
surface.c
dlls/ddraw/surface.c
+3
-0
ddraw1.c
dlls/ddraw/tests/ddraw1.c
+3
-1
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+3
-1
ddraw4.c
dlls/ddraw/tests/ddraw4.c
+3
-1
ddraw7.c
dlls/ddraw/tests/ddraw7.c
+3
-1
No files found.
dlls/ddraw/surface.c
View file @
4a416f8d
...
...
@@ -5615,6 +5615,9 @@ static void STDMETHODCALLTYPE ddraw_surface_wined3d_object_destroyed(void *paren
/* Reduce the ddraw surface count. */
list_remove
(
&
surface
->
surface_list_entry
);
if
(
surface
->
clipper
)
IDirectDrawClipper_Release
(
&
surface
->
clipper
->
IDirectDrawClipper_iface
);
if
(
surface
==
surface
->
ddraw
->
primary
)
surface
->
ddraw
->
primary
=
NULL
;
...
...
dlls/ddraw/tests/ddraw1.c
View file @
4a416f8d
...
...
@@ -627,6 +627,7 @@ static void test_clipper_blt(void)
IDirectDraw
*
ddraw
;
RGNDATA
*
rgn_data
;
D3DCOLOR
color
;
ULONG
refcount
;
HRGN
r1
,
r2
;
HWND
window
;
DDBLTFX
fx
;
...
...
@@ -819,7 +820,8 @@ static void test_clipper_blt(void)
IDirectDrawSurface_Release
(
dst_surface
);
IDirectDrawSurface_Release
(
src_surface
);
IDirectDrawClipper_Release
(
clipper
);
refcount
=
IDirectDrawClipper_Release
(
clipper
);
ok
(
!
refcount
,
"Clipper has %u references left.
\n
"
,
refcount
);
IDirectDraw_Release
(
ddraw
);
}
...
...
dlls/ddraw/tests/ddraw2.c
View file @
4a416f8d
...
...
@@ -521,6 +521,7 @@ static void test_clipper_blt(void)
IDirectDraw2
*
ddraw
;
RGNDATA
*
rgn_data
;
D3DCOLOR
color
;
ULONG
refcount
;
HRGN
r1
,
r2
;
HWND
window
;
DDBLTFX
fx
;
...
...
@@ -713,7 +714,8 @@ static void test_clipper_blt(void)
IDirectDrawSurface_Release
(
dst_surface
);
IDirectDrawSurface_Release
(
src_surface
);
IDirectDrawClipper_Release
(
clipper
);
refcount
=
IDirectDrawClipper_Release
(
clipper
);
ok
(
!
refcount
,
"Clipper has %u references left.
\n
"
,
refcount
);
IDirectDraw2_Release
(
ddraw
);
}
...
...
dlls/ddraw/tests/ddraw4.c
View file @
4a416f8d
...
...
@@ -742,6 +742,7 @@ static void test_clipper_blt(void)
IDirectDraw4
*
ddraw
;
RGNDATA
*
rgn_data
;
D3DCOLOR
color
;
ULONG
refcount
;
HRGN
r1
,
r2
;
HWND
window
;
DDBLTFX
fx
;
...
...
@@ -934,7 +935,8 @@ static void test_clipper_blt(void)
IDirectDrawSurface4_Release
(
dst_surface
);
IDirectDrawSurface4_Release
(
src_surface
);
IDirectDrawClipper_Release
(
clipper
);
refcount
=
IDirectDrawClipper_Release
(
clipper
);
ok
(
!
refcount
,
"Clipper has %u references left.
\n
"
,
refcount
);
IDirectDraw4_Release
(
ddraw
);
}
...
...
dlls/ddraw/tests/ddraw7.c
View file @
4a416f8d
...
...
@@ -666,6 +666,7 @@ static void test_clipper_blt(void)
IDirectDraw7
*
ddraw
;
RGNDATA
*
rgn_data
;
D3DCOLOR
color
;
ULONG
refcount
;
HRGN
r1
,
r2
;
HWND
window
;
DDBLTFX
fx
;
...
...
@@ -858,7 +859,8 @@ static void test_clipper_blt(void)
IDirectDrawSurface7_Release
(
dst_surface
);
IDirectDrawSurface7_Release
(
src_surface
);
IDirectDrawClipper_Release
(
clipper
);
refcount
=
IDirectDrawClipper_Release
(
clipper
);
ok
(
!
refcount
,
"Clipper has %u references left.
\n
"
,
refcount
);
IDirectDraw7_Release
(
ddraw
);
}
...
...
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