RFC: implement G_VALUE_STEAL_CONTENTS (for boxed types)
@malureau
Submitted by Marc-André Lureau Link to original bug (#762201)
Description
I noticed that boxed properties are actually allocated and copied 2 times when doing g_object_get() (once in g_value_set_boxed() and during G_VALUE_LCOPY)
In commit a786a9a0, Havoc suggested to add a flag G_VALUE_STEAL_CONTENTS to take away the value if possible. I tried that way, turned out to be fairly strightforward, however, I haven't tested extensively. Also, we may consider that extra collect flags may have been used privately by applications and thus we can't add more...
Signed-off-by: Marc-André Lureau marcandre.lureau@gmail.com