GArray, GPtrArray: factor out the actual freeing
commitdf9d9cc72f4d107f576322516a87e9fe0daa2539
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 14 Dec 2011 16:53:24 +0000 (14 16:53 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 14 Dec 2011 18:10:25 +0000 (14 18:10 +0000)
treedd85c0e2ac558fe2ae682cd2d18ff327aa2377b5
parent6457677b7db236ab580bdf546221f1e8d2102c80
GArray, GPtrArray: factor out the actual freeing

Depending how the array is freed, we may want to free the underlying
array (the "segment"), the struct wrapper or both.

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
glib/garray.c