Browse Source

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

Karoly Balogh 3 years ago
parent
commit
6146aa6eb6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/rtl-console/src/amicommon/video.pp

+ 1 - 0
packages/rtl-console/src/amicommon/video.pp

@@ -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;