Add a missing incref.
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/81ce545d Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/81ce545d Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/81ce545d Branch: refs/heads/master Commit: 81ce545d140dc7bd0a1336a64c87f5c09ab961ed Parents: 37aefb5 Author: Marvin Humphrey <[email protected]> Authored: Wed Aug 12 19:59:01 2015 -0700 Committer: Marvin Humphrey <[email protected]> Committed: Fri Aug 14 15:36:17 2015 -0700 ---------------------------------------------------------------------- runtime/go/clownfish/clownfish.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/81ce545d/runtime/go/clownfish/clownfish.go ---------------------------------------------------------------------- diff --git a/runtime/go/clownfish/clownfish.go b/runtime/go/clownfish/clownfish.go index 6fa8919..14f07ed 100644 --- a/runtime/go/clownfish/clownfish.go +++ b/runtime/go/clownfish/clownfish.go @@ -533,7 +533,7 @@ func ToGo(ptr unsafe.Pointer) interface{} { return float64(val) } else { // Don't convert to a native Go type, but wrap in a Go struct. - return WRAPAny(ptr) + return WRAPAny(unsafe.Pointer(C.cfish_incref(unsafe.Pointer(ptr)))) } }
