diff options
| author | Dmitri Shuralyov <[email protected]> | 2015-07-06 19:27:58 -0700 |
|---|---|---|
| committer | Dmitri Shuralyov <[email protected]> | 2015-07-06 19:27:58 -0700 |
| commit | b5693c1429ad7247ce75b23ebb866f9428bde8b6 (patch) | |
| tree | b19bd2924559eecf38330a9c1e1b6dd9f6ce085f /tree.go | |
| parent | b4ade2b9c693488aead837a36bc50e86d04950a2 (diff) | |
Prevent slot int variable from being GCed.
Before this change, there were no users of slot int variable in the Go
world (just a pointer to it that ended up in C world only), so Go's
garbage collector would free it and its value could not retrieved later
(once a pointer to it comes back to Go world from C world).
Keep a pointer to it in the Go world so that does not happen.
Fixes #218.
Diffstat (limited to 'tree.go')
0 files changed, 0 insertions, 0 deletions
