8
0
فهرست منبع

Merge pull request #212 from ckeditor/t/ckeditor5/1341

Fix: There should be no memory leaks when the editor is created and destroyed (see ckeditor/ckeditor5#1341).
Aleksander Nowodzinski 7 سال پیش
والد
کامیت
b4516fe20a
1فایلهای تغییر یافته به همراه10 افزوده شده و 0 حذف شده
  1. 10 0
      packages/ckeditor5-link/src/linkui.js

+ 10 - 0
packages/ckeditor5-link/src/linkui.js

@@ -75,6 +75,16 @@ export default class LinkUI extends Plugin {
 		this._enableUserBalloonInteractions();
 	}
 
+	/**
+	 * @inheritDoc
+	 */
+	destroy() {
+		super.destroy();
+
+		// Destroy created UI components as they are not automatically destroyed (see ckeditor5#1341).
+		this.formView.destroy();
+	}
+
 	/**
 	 * Creates the {@link module:link/ui/linkactionsview~LinkActionsView} instance.
 	 *