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
7a97d4e2
Commit
7a97d4e2
authored
Nov 16, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Nov 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Free the shader function when freeing the shader.
parent
bd975806
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
baseshader.c
dlls/wined3d/baseshader.c
+1
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/baseshader.c
View file @
7a97d4e2
...
...
@@ -1119,6 +1119,7 @@ ULONG WINAPI IWineD3DBaseShaderImpl_Release(IWineD3DBaseShader *iface) {
TRACE
(
"(%p) : Releasing from %d
\n
"
,
This
,
This
->
baseShader
.
ref
);
ref
=
InterlockedDecrement
(
&
This
->
baseShader
.
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
->
baseShader
.
function
);
shader_delete_constant_list
(
&
This
->
baseShader
.
constantsF
);
shader_delete_constant_list
(
&
This
->
baseShader
.
constantsB
);
shader_delete_constant_list
(
&
This
->
baseShader
.
constantsI
);
...
...
dlls/wined3d/wined3d_private.h
View file @
7a97d4e2
...
...
@@ -1884,7 +1884,7 @@ typedef struct IWineD3DBaseShaderClass
SHADER_LIMITS
limits
;
SHADER_PARSE_STATE
parse_state
;
CONST
SHADER_OPCODE
*
shader_ins
;
CONST
DWORD
*
function
;
DWORD
*
function
;
UINT
functionLength
;
GLuint
prgId
;
BOOL
is_compiled
;
...
...
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