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
|
@ -13,8 +13,8 @@ void main() {
|
|||
print('Is head detached: ${repo.isHeadDetached}');
|
||||
print('Repository refs: ${repo.references}');
|
||||
|
||||
// close() should be called on object to free memory when done.
|
||||
repo.close();
|
||||
// free() should be called on object to free memory when done.
|
||||
repo.free();
|
||||
} catch (e) {
|
||||
print(e);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue