OSDN Git Service

メモリーリークの可能性がある個所を修正した
authorkonekoneko <test2214@hotmail.co.jp>
Fri, 14 Oct 2016 20:02:44 +0000 (01:32 +0530)
committerkonekoneko <test2214@hotmail.co.jp>
Fri, 14 Oct 2016 20:02:44 +0000 (01:32 +0530)
Core/ViewBase.cs

index c5bff83..d056083 100644 (file)
@@ -319,7 +319,10 @@ namespace FooEditEngine
         {
             if (disposing)
             {
-                this.Document.UpdateCalledAlways -= new DocumentUpdateEventHandler(this.doc_Update);    //これをしないと複数のビューを作成した時に妙なエラーが発生する
+                this._Document.UpdateCalledAlways -= new DocumentUpdateEventHandler(this.doc_Update);    //これをしないと複数のビューを作成した時に妙なエラーが発生する
+                this._Document.LineBreakChanged -= Document_LineBreakChanged;
+                this._Document.StatusUpdate -= Document_StatusUpdate;
+                this._Document.PerformLayouted -= _Document_PerformLayouted;
             }
             this._LayoutLines.Clear();
         }