commit 848ddb8adc819e24caf4faba370876c40cf8d9e7
parent 9874a726b6d04a564d995785110f5b0eb81091d8
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 18 Mar 2021 00:15:11 +0100
parent 9874a726b6d04a564d995785110f5b0eb81091d8
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 18 Mar 2021 00:15:11 +0100
free.nim: add freeing of git_blob
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/nimgit/free.nim b/nimgit/free.nim @@ -8,7 +8,7 @@ type git_strarray | git_object | git_commit | git_status_list | git_annotated_commit | git_tree_entry | git_revwalk | git_buf | git_pathspec | git_tree | git_diff | git_pathspec_match_list | - git_branch_iterator | git_signature + git_branch_iterator | git_signature | git_blob proc free* [T: NimGitTypes] (point: ptr T) = dealloc(point) @@ -50,4 +50,6 @@ proc free* [T: GitTypes] (point: ptr T) = elif T is git_branch_iterator: git_branch_iterator_free(point) elif T is git_signature: - git_signature_free(point)- \ No newline at end of file + git_signature_free(point) + elif T is git_blob: + git_blob_free(point)