Revert "to-py-struct: don't copy the boxed if we are the sole owner of the wrapper"d371fd77d33c2987cc450bd68ce4ee4835e09bd816/head
commitd371fd77d33c2987cc450bd68ce4ee4835e09bd8
authorChristoph Reiter <reiter.christoph@gmail.com>
Thu, 8 Feb 2018 08:02:37 +0000 (8 09:02 +0100)
committerChristoph Reiter <reiter.christoph@gmail.com>
Thu, 8 Feb 2018 08:11:16 +0000 (8 09:11 +0100)
tree5b2c84c2d985b6cf6520c729d89b5dc152d55c4a
parent024ac583538976330b429b9b203d412fec0426e3
Revert "to-py-struct: don't copy the boxed if we are the sole owner of the wrapper"

This reverts commit a4a68b3c7a4bb64c71e1bdbe52ede109b6bcd0bb.

This was wrong. In the context of a boxed return value we also have only one
ref but it doesn't get freed after.

We could decide this based on PYGI_CALLING_CONTEXT_IS_FROM_C from the callable cache,
but let's leave that for now.
gi/pygi-struct-marshal.c
tests/test_everything.py