mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 07:39:31 +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);
|
||||
until msg = nil;
|
||||
ModifyIDCMP(videoWindow,0);
|
||||
VideoWindow^.UserPort:=nil;
|
||||
Permit();
|
||||
CloseWindow(videoWindow);
|
||||
VideoWindow := nil;
|
||||
|
Loading…
Reference in New Issue
Block a user