"transfer full" not respected
gobject-introspection-sample.tar.gz
(Modified copy of https://github.com/kou/gobject-introspection-sample)
Compile as usual: ./autogen.sh ./configure make
Run in-tree: $ LD_LIBRARY_PATH=sample/.libs GI_TYPELIB_PATH=sample ./test.py Creating 0x19a9350 Releasing 0x19a9350 Releasing 0x19a9350
Note the double release. The code is...
g = Sample.Greeter.new()
g.eater()
and it looks like the "transfer full" annotation on "eater" is completely ignored even though it has been picked up correctly by the scanner. This sample shows it for an instance-parameter, but the same thing happens for a regular parameter.
What should happen here is the "g" should become None or otherwise cease to refer to the object it no longer owns.
This is with a stock LinuxMint 18.3. Same observed with stock OpenSuSE 42.3
"g-ir-scanner --version" doesn't seem to work.