[WIP/RFC] Pointer indirection #196

Merged
pks-t merged 15 commits from pointer-indirection into master 2015-05-30 15:23:23 -05:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit e8531dd5c3 - Show all commits

View File

@ -561,7 +561,9 @@ func freeDiffOptions(copts *C.git_diff_options) {
freeStrarray(&cpathspec)
C.free(unsafe.Pointer(copts.old_prefix))
C.free(unsafe.Pointer(copts.new_prefix))
pointerHandles.Untrack(copts.notify_payload)
if copts.notify_payload != nil {
pointerHandles.Untrack(copts.notify_payload)
}
}
}