浏览代码

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

Karoly Balogh 3 年之前
父节点
当前提交
6146aa6eb6
共有 1 个文件被更改,包括 1 次插入0 次删除
  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);
     until msg = nil;
     ModifyIDCMP(videoWindow,0);
+    VideoWindow^.UserPort:=nil;
     Permit();
     CloseWindow(videoWindow);
     VideoWindow := nil;