Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
fde2abba
Commit
fde2abba
authored
Mar 07, 2012
by
Jozef Kucia
Committed by
Alexandre Julliard
Mar 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Don't leak D3DXBuffer.
parent
3c1d5f6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
mesh.c
dlls/d3dx9_36/tests/mesh.c
+2
-5
No files found.
dlls/d3dx9_36/tests/mesh.c
View file @
fde2abba
...
...
@@ -2471,10 +2471,6 @@ static void D3DXCreateBoxTest(void)
return
;
}
hr
=
D3DXCreateBuffer
(
36
*
sizeof
(
DWORD
),
&
ppBuffer
);
ok
(
hr
==
D3D_OK
,
"Expected D3D_OK, received %#x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
goto
end
;
hr
=
D3DXCreateBox
(
device
,
2
.
0
f
,
20
.
0
f
,
4
.
9
f
,
NULL
,
&
ppBuffer
);
todo_wine
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Expected D3DERR_INVALIDCALL, received %#x
\n
"
,
hr
);
...
...
@@ -2490,6 +2486,7 @@ static void D3DXCreateBoxTest(void)
hr
=
D3DXCreateBox
(
device
,
22
.
0
f
,
20
.
0
f
,
-
4
.
9
f
,
&
box
,
&
ppBuffer
);
todo_wine
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Expected D3DERR_INVALIDCALL, received %#x
\n
"
,
hr
);
ppBuffer
=
NULL
;
hr
=
D3DXCreateBox
(
device
,
10
.
9
f
,
20
.
0
f
,
4
.
9
f
,
&
box
,
&
ppBuffer
);
todo_wine
ok
(
hr
==
D3D_OK
,
"Expected D3D_OK, received %#x
\n
"
,
hr
);
...
...
@@ -2508,7 +2505,7 @@ static void D3DXCreateBoxTest(void)
end:
IDirect3DDevice9_Release
(
device
);
IDirect3D9_Release
(
d3d
);
ID3DXBuffer_Release
(
ppBuffer
);
if
(
ppBuffer
)
ID3DXBuffer_Release
(
ppBuffer
);
DestroyWindow
(
wnd
);
}
...
...
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