* Fixed memory leak. Patch by Inoussa OUEDRAOGO

git-svn-id: trunk@9602 -
This commit is contained in:
michael 2007-12-31 10:02:53 +00:00
parent 323cd9e0fe
commit 621492c968

View File

@ -41,6 +41,7 @@ Type
function Parse: TJSONData;
Constructor Create(Source : TStream); overload;
Constructor Create(Source : TJSONStringType); overload;
destructor Destroy();override;
end;
EJSONScanner = Class(Exception);
@ -245,5 +246,11 @@ begin
FScanner:=TJSONScanner.Create(Source);
end;
destructor TJSONParser.Destroy();
begin
FreeAndNil(FScanner);
inherited Destroy();
end;
end.