From b01a3ff9cc4d915c0741ccdda3d95ff16f57af24 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Sun, 17 Mar 2013 21:46:26 -0500 Subject: [PATCH] Release repo when destroy is called --- src/app/git.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/git.coffee b/src/app/git.coffee index c295f1c6d..21128dfbd 100644 --- a/src/app/git.coffee +++ b/src/app/git.coffee @@ -56,7 +56,10 @@ class Git @statusTask.off() @statusTask = null - @repo = null + if @repo? + @repo.release() + @repo = null + @unsubscribe() getWorkingDirectory: ->