Dispose of ::scopedConfigSubscriptions when Editor is destroyed

This commit is contained in:
Nathan Sobo
2014-11-07 10:13:38 -07:00
parent 6e55c80d3c
commit ab395952a9

View File

@@ -175,6 +175,7 @@ class TextEditor extends Model
destroyed: ->
@unsubscribe()
@scopedConfigSubscriptions.dispose()
selection.destroy() for selection in @getSelections()
@buffer.release()
@displayBuffer.destroy()