revert code that did not affect memory
[gitlive] / GitRepo.vala
index fa5ce1a..a4d1bfd 100644 (file)
@@ -1014,6 +1014,7 @@ public class GitRepo : Object
                                var options = new Ggit.FetchOptions();
                                options.set_remote_callbacks( new GitCallbacks(this));
                                r.download(far, options);
+                               r.disconnect();
                        }
                        this.loadStatus();
                         
@@ -1137,6 +1138,7 @@ public class GitRepo : Object
                var cb = new GitCallbacks(this);
                r.connect(Ggit.Direction.FETCH, cb, null, null);
                this.remote_heads = r.list();
+               r.disconnect();
        
        }