We were returning junk memory here, because we didn't copy the value
authorHavoc Pennington <hp@redhat.com>
Thu, 19 Apr 2001 21:48:21 +0000 (21:48 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Thu, 19 Apr 2001 21:48:21 +0000 (21:48 +0000)
commita786a9a0204c66285f9686088512ddff67ac41fa
tree7fad1cc0c24ef613bf81367742c682c73974c54e
parent7ee286440dd3276d57607ebf1bf27cd47aee4163
We were returning junk memory here, because we didn't copy the value

2001-04-19  Havoc Pennington  <hp@redhat.com>

* gobject.c (g_object_get_valist): We were returning junk memory
here, because we didn't copy the value (G_VALUE_NOCOPY_CONTENTS
passed to G_VALUE_LCOPY) and then we freed the GValue immediately
after. Removed G_VALUE_NOCOPY_CONTENTS from here; need a
G_VALUE_STEAL_CONTENTS or the like if we want this optimization.
gobject/ChangeLog
gobject/gobject.c