mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 03:36:08 +02:00
LazReport, fix crash because of uninitialized variable, issue #22145
git-svn-id: trunk@37447 -
This commit is contained in:
parent
8dd4e1d1d7
commit
974b7ca2a6
@ -4605,7 +4605,8 @@ begin
|
|||||||
AGraphic := gc.Create;
|
AGraphic := gc.Create;
|
||||||
AGraphic.LoadFromStream(s);
|
AGraphic.LoadFromStream(s);
|
||||||
Picture.Assign(AGraphic);
|
Picture.Assign(AGraphic);
|
||||||
end;
|
end else
|
||||||
|
AGraphic := nil;
|
||||||
finally
|
finally
|
||||||
if assigned(AGraphic) then
|
if assigned(AGraphic) then
|
||||||
AGraphic.Free;
|
AGraphic.Free;
|
||||||
|
Loading…
Reference in New Issue
Block a user