mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
refactor: use libgit free() functions instead of calloc()
This commit is contained in:
parent
4f851bc2e5
commit
2477b4efd8
14 changed files with 30 additions and 21 deletions
|
@ -26,7 +26,7 @@ void main() {
|
|||
});
|
||||
|
||||
tearDown(() {
|
||||
config.close();
|
||||
config.free();
|
||||
File('$tmpDir/$configFileName').deleteSync();
|
||||
});
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ void main() {
|
|||
});
|
||||
|
||||
tearDownAll(() async {
|
||||
repo.close();
|
||||
repo.free();
|
||||
await Directory(tmpDir).delete(recursive: true);
|
||||
});
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ void main() {
|
|||
});
|
||||
|
||||
tearDownAll(() async {
|
||||
repo.close();
|
||||
repo.free();
|
||||
await Directory(tmpDir).delete(recursive: true);
|
||||
});
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ void main() {
|
|||
tearDownAll(() async {
|
||||
repo.head.free();
|
||||
reflog.free();
|
||||
repo.close();
|
||||
repo.free();
|
||||
await Directory(tmpDir).delete(recursive: true);
|
||||
});
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ void main() {
|
|||
});
|
||||
|
||||
tearDown(() {
|
||||
repo.close();
|
||||
repo.free();
|
||||
});
|
||||
|
||||
test('opens successfully', () {
|
||||
|
@ -67,7 +67,7 @@ void main() {
|
|||
});
|
||||
|
||||
tearDown(() {
|
||||
repo.close();
|
||||
repo.free();
|
||||
});
|
||||
|
||||
test('opens standart repository from working directory successfully',
|
||||
|
@ -144,7 +144,7 @@ void main() {
|
|||
});
|
||||
|
||||
tearDownAll(() async {
|
||||
repo.close();
|
||||
repo.free();
|
||||
await Directory(tmpDir).delete(recursive: true);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue