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
93fd4c12
Commit
93fd4c12
authored
May 29, 2006
by
Vitaliy Margolen
Committed by
Alexandre Julliard
May 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Properly destroy texture object if we failed to create its surfaces.
parent
19d19b2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
device.c
dlls/wined3d/device.c
+2
-6
No files found.
dlls/wined3d/device.c
View file @
93fd4c12
...
...
@@ -843,14 +843,10 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateTexture(IWineD3DDevice *iface, UINT Wid
/* use the callback to create the texture surface */
hr
=
D3DCB_CreateSurface
(
This
->
parent
,
tmpW
,
tmpH
,
Format
,
Usage
,
Pool
,
i
,
&
object
->
surfaces
[
i
],
NULL
);
if
(
hr
!=
WINED3D_OK
||
(
(
IWineD3DSurfaceImpl
*
)
object
->
surfaces
[
i
])
->
Flags
&
SFLAG_OVERSIZE
)
{
int
j
;
FIXME
(
"Failed to create surface %p
\n
"
,
object
);
/* clean up */
for
(
j
=
0
;
j
<=
i
;
j
++
)
{
if
(
object
->
surfaces
[
j
])
IWineD3DSurface_Release
(
object
->
surfaces
[
j
]);
}
/* heap free object */
HeapFree
(
GetProcessHeap
(),
0
,
object
);
object
->
surfaces
[
i
]
=
NULL
;
IWineD3DTexture_Release
((
IWineD3DTexture
*
)
object
);
*
ppTexture
=
NULL
;
return
hr
;
...
...
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