lcl: destroy canvas handle on statusbar window destruction (bug )

git-svn-id: trunk@33342 -
This commit is contained in:
paul 2011-11-05 14:55:40 +00:00
parent 84fd8c7545
commit 1e70708349

View File

@ -146,6 +146,8 @@ end;
procedure TStatusBar.DestroyWnd;
begin
inherited DestroyWnd;
if FCanvas <> nil then
TControlCanvas(FCanvas).FreeHandle;
FHandlePanelCount:=0;
FHandleObjectNeedsUpdate:=false;
end;