lcl: be sure that popup menu will notify a control on destruction

git-svn-id: trunk@21843 -
This commit is contained in:
paul 2009-09-24 08:50:50 +00:00
parent eaa3c7ca92
commit ece2fcadca

View File

@ -3539,7 +3539,9 @@ end;
------------------------------------------------------------------------------}
procedure TControl.SetPopupMenu(Value: TPopupMenu);
begin
FPopupMenu := Value;
FPopupMenu := Value;
if FPopupMenu <> nil then
FPopupMenu.FreeNotification(Self);
end;
{------------------------------------------------------------------------------