rtl-console/amicommon: set the window's UserPort to nil before closing, as recommended

This commit is contained in:
Karoly Balogh 2021-12-26 20:37:29 +01:00
parent 539f2cd7f0
commit 6146aa6eb6

View File

@ -445,6 +445,7 @@ begin
if (msg <> nil) then ReplyMsg(msg);
until msg = nil;
ModifyIDCMP(videoWindow,0);
VideoWindow^.UserPort:=nil;
Permit();
CloseWindow(videoWindow);
VideoWindow := nil;