refactor(repository)!: use Finalizer to automatically free allocated memory

BREAKING CHANGE: Return value of identity getter changed from Map<String, String> to Identity
This commit is contained in:
Aleksey Kulikov 2022-05-02 13:15:58 +03:00
parent aef440e345
commit 813de89745
42 changed files with 74 additions and 130 deletions

View file

@ -19,7 +19,6 @@ void main() {
});
tearDown(() {
repo.free();
tmpDir.deleteSync(recursive: true);
});
@ -165,8 +164,6 @@ void main() {
final bare = Repository.open(p.join('test', 'assets', 'empty_bare.git'));
expect(() => bare.status, throwsA(isA<LibGit2Error>()));
bare.free();
});
test('cleans up state', () {