summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeah (ctucx) <leah@ctu.cx>2021-03-18 00:15:11 +0100
committerLeah (ctucx) <leah@ctu.cx>2021-03-18 00:15:11 +0100
commit848ddb8adc819e24caf4faba370876c40cf8d9e7 (patch)
treeee4222a107fe9069eb6e61c3c81181523954c2c2
parent9874a726b6d04a564d995785110f5b0eb81091d8 (diff)
downloadnimgit-848ddb8adc819e24caf4faba370876c40cf8d9e7.tar.gz
nimgit-848ddb8adc819e24caf4faba370876c40cf8d9e7.tar.bz2
nimgit-848ddb8adc819e24caf4faba370876c40cf8d9e7.zip
free.nim: add freeing of git_blob
-rw-r--r--nimgit/free.nim6
1 files changed, 4 insertions, 2 deletions
diff --git a/nimgit/free.nim b/nimgit/free.nim
index 2b652f7..803f5ae 100644
--- 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)