mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 19:52:26 +02:00
Undo Revision 24150 #55f4c6d87b ( TControl: Call RemoveFreeNotification on PopUpMenu, when replaced )
git-svn-id: trunk@24156 -
This commit is contained in:
parent
a1ba019bb2
commit
ce1a8b7e1c
@ -3618,8 +3618,6 @@ end;
|
|||||||
------------------------------------------------------------------------------}
|
------------------------------------------------------------------------------}
|
||||||
procedure TControl.SetPopupMenu(Value: TPopupMenu);
|
procedure TControl.SetPopupMenu(Value: TPopupMenu);
|
||||||
begin
|
begin
|
||||||
if FPopupMenu <> nil then
|
|
||||||
FPopupMenu.RemoveFreeNotification(Self);
|
|
||||||
FPopupMenu := Value;
|
FPopupMenu := Value;
|
||||||
if FPopupMenu <> nil then
|
if FPopupMenu <> nil then
|
||||||
FPopupMenu.FreeNotification(Self);
|
FPopupMenu.FreeNotification(Self);
|
||||||
|
Loading…
Reference in New Issue
Block a user