Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #212 from ckeditor/t/ckeditor5/1341
Browse files Browse the repository at this point in the history
Fix: There should be no memory leaks when the editor is created and destroyed (see ckeditor/ckeditor5#1341).
  • Loading branch information
oleq authored Jan 22, 2019
2 parents f8573c2 + 1664e52 commit bb24b88
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/linkui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit bb24b88

Please sign in to comment.