mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Dispose of decoration subscriptions when it’s destroyed
This commit is contained in:
@@ -551,6 +551,7 @@ class TextEditorPresenter
|
||||
decorationDisposables.add decoration.onDidFlash(@highlightDidFlash.bind(this, decoration))
|
||||
decorationDisposables.add decoration.onDidDestroy =>
|
||||
@disposables.remove(decorationDisposables)
|
||||
decorationDisposables.dispose()
|
||||
@didDestroyDecoration(decoration)
|
||||
@disposables.add(decorationDisposables)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user