mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
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:
parent
aef440e345
commit
813de89745
42 changed files with 74 additions and 130 deletions
|
@ -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', () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue