mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 23:49:05 +02:00
rtl-console/amicommon: set the window's UserPort to nil before closing, as recommended
This commit is contained in:
parent
539f2cd7f0
commit
6146aa6eb6
@ -445,6 +445,7 @@ begin
|
|||||||
if (msg <> nil) then ReplyMsg(msg);
|
if (msg <> nil) then ReplyMsg(msg);
|
||||||
until msg = nil;
|
until msg = nil;
|
||||||
ModifyIDCMP(videoWindow,0);
|
ModifyIDCMP(videoWindow,0);
|
||||||
|
VideoWindow^.UserPort:=nil;
|
||||||
Permit();
|
Permit();
|
||||||
CloseWindow(videoWindow);
|
CloseWindow(videoWindow);
|
||||||
VideoWindow := nil;
|
VideoWindow := nil;
|
||||||
|
Loading…
Reference in New Issue
Block a user