Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

compiler/libec: Moved the template args freeing code to its rightful …

…place (nameSpecifier)
  • Loading branch information...
commit c21e544e1e4b46cbf68a5e1adc9f3d2fcc0653cb 1 parent 72ff7a2
Jerome St-Louis jerstlouis authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 compiler/libec/src/freeAst.ec
6 compiler/libec/src/freeAst.ec
View
@@ -275,14 +275,12 @@ void FreeSpecifier(Specifier spec)
case nameSpecifier:
//case classSpecifier:
delete spec.name;
+ if(spec.templateArgs)
+ FreeList(spec.templateArgs, FreeTemplateArgument);
break;
case extendedSpecifier:
if(spec.extDecl)
FreeExtDecl(spec.extDecl);
- if(spec.templateArgs)
- {
- FreeList(spec.templateArgs, FreeTemplateArgument);
- }
break;
case enumSpecifier:
if(spec.id)
Please sign in to comment.
Something went wrong with that request. Please try again.