In [email protected]
“[ruby-gnome2-devel-en] I applied a patch to fix all the list *_free
functions” on Fri, 23 Jul 2010 18:55:03 +0200,
Nikolai W. [email protected] wrote:
I applied a patch to fix all the list *_free functions.
These functions were horribly broken. Not only could they fail to
release the memory if an error occurred, they never actually freed the
memory even if everything succeeded! The argument variable was
reused, so when, for example, g_list_free was actually called, the
argument would be NULL.
It seems that rbgutil_glist2ary_string_and_free() doesn’t
free list data when it gets an error while processing.
list: (“a”, “b”, “c”)
error on “b”:
* “c” will not be freed. (“b” may not be freed?)
* list will be freed.