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
f10e0d4e
Commit
f10e0d4e
authored
Sep 28, 2012
by
Matteo Bruni
Committed by
Alexandre Julliard
Sep 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Fix freeing function.
parent
896d1047
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
hlsl.y
dlls/d3dcompiler_43/hlsl.y
+2
-2
utils.c
dlls/d3dcompiler_43/utils.c
+0
-4
No files found.
dlls/d3dcompiler_43/hlsl.y
View file @
f10e0d4e
...
...
@@ -2227,7 +2227,7 @@ static DWORD add_modifier(DWORD modifiers, DWORD mod, const struct YYLTYPE *loc)
struct bwriter_shader *parse_hlsl(enum shader_type type, DWORD major, DWORD minor,
const char *entrypoint, char **messages)
{
struct hlsl_ir_function_decl *function;
struct hlsl_ir_function_decl *function
, *next_function
;
struct hlsl_scope *scope, *next_scope;
struct hlsl_type *hlsl_type, *next_type;
struct hlsl_ir_var *var, *next_var;
...
...
@@ -2284,7 +2284,7 @@ struct bwriter_shader *parse_hlsl(enum shader_type type, DWORD major, DWORD mino
d3dcompiler_free(hlsl_ctx.source_files);
TRACE("Freeing functions IR.\n");
LIST_FOR_EACH_ENTRY
(
function, &hlsl_ctx.functions, struct hlsl_ir_function_decl, node.entry)
LIST_FOR_EACH_ENTRY
_SAFE(function, next_
function, &hlsl_ctx.functions, struct hlsl_ir_function_decl, node.entry)
free_function(function);
TRACE("Freeing variables.\n");
...
...
dlls/d3dcompiler_43/utils.c
View file @
f10e0d4e
...
...
@@ -2369,12 +2369,8 @@ void free_instr(struct hlsl_ir_node *node)
void
free_function
(
struct
hlsl_ir_function_decl
*
func
)
{
struct
hlsl_ir_var
*
param
,
*
next_param
;
d3dcompiler_free
((
void
*
)
func
->
name
);
d3dcompiler_free
((
void
*
)
func
->
semantic
);
LIST_FOR_EACH_ENTRY_SAFE
(
param
,
next_param
,
func
->
parameters
,
struct
hlsl_ir_var
,
node
.
entry
)
d3dcompiler_free
(
param
);
d3dcompiler_free
(
func
->
parameters
);
free_instr_list
(
func
->
body
);
d3dcompiler_free
(
func
);
...
...
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