Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4a6e06d7
Commit
4a6e06d7
authored
Jan 22, 2012
by
Rico Schüller
Committed by
Alexandre Julliard
Jan 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Introduce free_constant_table().
parent
14b790a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
shader.c
dlls/d3dx9_36/shader.c
+9
-5
No files found.
dlls/d3dx9_36/shader.c
View file @
4a6e06d7
...
...
@@ -632,6 +632,12 @@ typedef struct ID3DXConstantTableImpl {
ctab_constant
*
constants
;
}
ID3DXConstantTableImpl
;
static
void
free_constant_table
(
struct
ID3DXConstantTableImpl
*
table
)
{
HeapFree
(
GetProcessHeap
(),
0
,
table
->
constants
);
HeapFree
(
GetProcessHeap
(),
0
,
table
->
ctab
);
}
static
inline
ID3DXConstantTableImpl
*
impl_from_ID3DXConstantTable
(
ID3DXConstantTable
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ID3DXConstantTableImpl
,
ID3DXConstantTable_iface
);
...
...
@@ -681,7 +687,7 @@ static ULONG WINAPI ID3DXConstantTableImpl_AddRef(ID3DXConstantTable* iface)
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
ID3DXConstantTableImpl_Release
(
ID3DXConstantTable
*
iface
)
static
ULONG
WINAPI
ID3DXConstantTableImpl_Release
(
ID3DXConstantTable
*
iface
)
{
ID3DXConstantTableImpl
*
This
=
impl_from_ID3DXConstantTable
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -690,8 +696,7 @@ static ULONG WINAPI ID3DXConstantTableImpl_Release(ID3DXConstantTable* iface)
if
(
!
ref
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
->
constants
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
ctab
);
free_constant_table
(
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -1258,8 +1263,7 @@ HRESULT WINAPI D3DXGetShaderConstantTableEx(CONST DWORD* byte_code,
error:
HeapFree
(
GetProcessHeap
(),
0
,
object
->
constants
);
HeapFree
(
GetProcessHeap
(),
0
,
object
->
ctab
);
free_constant_table
(
object
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
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