From ed201d41cd81d9bc7daade267ace3227d3955833 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 14 Oct 2015 10:11:53 +0200 Subject: [PATCH] :green_heart: Clear CommandRegistry on AtomEnvironment destruction --- src/atom-environment.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/atom-environment.coffee b/src/atom-environment.coffee index aafe1f9fe..866c71945 100644 --- a/src/atom-environment.coffee +++ b/src/atom-environment.coffee @@ -288,11 +288,13 @@ class AtomEnvironment extends Model destroy: -> return if not @project + @disposables.dispose() @workspace?.destroy() @workspace = null @themes.workspace = null @project?.destroy() @project = null + @commands.clear() @uninstallWindowEventHandler()