mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Null out component when editor is destroyed to minimize leaks
Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
committed by
Nathan Sobo
parent
be2aaa0b22
commit
ca3395b1b2
@@ -478,7 +478,9 @@ class TextEditor extends Model
|
||||
@gutterContainer.destroy()
|
||||
@emitter.emit 'did-destroy'
|
||||
@emitter.clear()
|
||||
@editorElement = null
|
||||
@component?.element.component = null
|
||||
@component = null
|
||||
@lineNumberGutter.element = null
|
||||
|
||||
###
|
||||
Section: Event Subscription
|
||||
|
||||
Reference in New Issue
Block a user