Unverified Commit 17a8d9ad by John Kessenich Committed by GitHub

Merge pull request #1703 from dj2/mem_leak

Allocate empty function name in the string pool.
parents ade579fb 756bfd0a
...@@ -473,8 +473,8 @@ function_identifier ...@@ -473,8 +473,8 @@ function_identifier
if ($$.function == 0) { if ($$.function == 0) {
// error recover // error recover
TString empty(""); TString* empty = NewPoolTString("");
$$.function = new TFunction(&empty, TType(EbtVoid), EOpNull); $$.function = new TFunction(empty, TType(EbtVoid), EOpNull);
} }
} }
| non_uniform_qualifier { | non_uniform_qualifier {
......
...@@ -4447,8 +4447,8 @@ yyreduce: ...@@ -4447,8 +4447,8 @@ yyreduce:
if ((yyval.interm).function == 0) { if ((yyval.interm).function == 0) {
// error recover // error recover
TString empty(""); TString* empty = NewPoolTString("");
(yyval.interm).function = new TFunction(&empty, TType(EbtVoid), EOpNull); (yyval.interm).function = new TFunction(empty, TType(EbtVoid), EOpNull);
} }
} }
#line 4455 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */ #line 4455 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment