IDE: free handlers in component palette, fixes a memory leak

git-svn-id: trunk@41879 -
This commit is contained in:
juha 2013-06-24 17:54:37 +00:00
parent 0fbbe371cb
commit 2ec180ab41

View File

@ -610,9 +610,13 @@ begin
end;
destructor TBaseComponentPalette.Destroy;
var
HandlerType: TComponentPaletteHandlerType;
begin
Clear;
FItems.Free;
for HandlerType:=Low(HandlerType) to High(HandlerType) do
FHandlers[HandlerType].Free;
inherited Destroy;
end;