Merged revision(s) 51385 #0ce59a4f03, 51451 #bc4da6f46d from trunk:

codetools: fix unused units feature broken by r50266 #d49143fd83. Issue #29486
........
IdeIntf: Make a freed BitMap Nil.
........

git-svn-id: branches/fixes_1_6@51519 -
This commit is contained in:
maxim 2016-02-06 14:26:44 +00:00
parent 6ba33c2775
commit ead5e6d5b1
2 changed files with 2 additions and 2 deletions

View File

@ -1734,7 +1734,7 @@ var
Node:=Tree.Root;
while Node<>nil do begin
case Node.Desc of
ctnUseUnit,ctnUsesSection,
ctnUseUnit,ctnUsesSection,ctnUseUnitNamespace,ctnUseUnitClearName,
ctnProgram,ctnUnit,ctnPackage,ctnLibrary,ctnEndPoint:
begin
// skip node

View File

@ -584,7 +584,7 @@ begin
if AValue<>nil then
Bitmap.Assign(AValue)
else
FBitmap.Free;
FreeAndNil(FBitmap);
if MenuItem<>nil then
MenuItem.Bitmap:=FBitmap;
end;