diff options
| author | Patrick Steinhardt <[email protected]> | 2015-05-22 10:01:50 +0200 |
|---|---|---|
| committer | Patrick Steinhardt <[email protected]> | 2015-05-22 10:01:50 +0200 |
| commit | e8531dd5c31fc87044e9061b18f37df9b05bd0ac (patch) | |
| tree | 62b2ffe5ef7c32f89a49bb722c1cce85b2a9656b /diff.go | |
| parent | c43afaf9c4f5abb7ded44d88c8e9e290f61362fd (diff) | |
diff: only untrack notify payload when it is set
Diffstat (limited to 'diff.go')
| -rw-r--r-- | diff.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) + } } } |
