Permalink
Browse files

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

…place (nameSpecifier)
  • Loading branch information...
1 parent 72ff7a2 commit c21e544e1e4b46cbf68a5e1adc9f3d2fcc0653cb @jerstlouis jerstlouis committed Sep 17, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 compiler/libec/src/freeAst.ec
@@ -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)

0 comments on commit c21e544

Please sign in to comment.