LazReport, fix crash because of uninitialized variable, issue #22145

git-svn-id: trunk@37447 -
This commit is contained in:
jesus 2012-05-29 02:19:41 +00:00
parent 8dd4e1d1d7
commit 974b7ca2a6

View File

@ -4605,7 +4605,8 @@ begin
AGraphic := gc.Create;
AGraphic.LoadFromStream(s);
Picture.Assign(AGraphic);
end;
end else
AGraphic := nil;
finally
if assigned(AGraphic) then
AGraphic.Free;