codetools: c parser: fixed mem leak

git-svn-id: trunk@14659 -
This commit is contained in:
mattias 2008-03-26 17:42:58 +00:00
parent ab2e97512f
commit dce2481e79
2 changed files with 12 additions and 0 deletions

View File

@ -1094,6 +1094,7 @@ begin
FreeAndNil(Tree);
ReAllocMem(FIfStack,0);
FIfStackCapacity:=0;
FreeAndNil(FDefaultTokenList);
inherited Destroy;
end;

View File

@ -50,8 +50,19 @@
<OtherUnitFiles Value="scanexamples/"/>
</SearchPaths>
<CodeGeneration>
<Checks>
<IOChecks Value="True"/>
<RangeChecks Value="True"/>
<OverflowChecks Value="True"/>
<StackChecks Value="True"/>
</Checks>
<Generate Value="Faster"/>
</CodeGeneration>
<Linking>
<Debugging>
<UseHeaptrc Value="True"/>
</Debugging>
</Linking>
<Other>
<CompilerPath Value="$(CompPath)"/>
</Other>