mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 01:01:23 +02:00
IdeIntf: Make a freed BitMap Nil.
git-svn-id: trunk@51451 -
This commit is contained in:
parent
cfd5a7b71c
commit
bc4da6f46d
@ -598,7 +598,7 @@ begin
|
|||||||
if AValue<>nil then
|
if AValue<>nil then
|
||||||
Bitmap.Assign(AValue)
|
Bitmap.Assign(AValue)
|
||||||
else
|
else
|
||||||
FBitmap.Free;
|
FreeAndNil(FBitmap);
|
||||||
if MenuItem<>nil then
|
if MenuItem<>nil then
|
||||||
MenuItem.Bitmap:=FBitmap;
|
MenuItem.Bitmap:=FBitmap;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user