Re: newbie: g_string_free(..., FALSE)



On Wed, Sep 15, 2004 at 11:47:22AM +0200, F. Kater wrote:
if free a GString but return the character data using g_string_free(
my_gstring, FALSE): How do I later free the char string when I don't
need it anymore?

If you do g_string_free(my_gstring, FALSE), I assume you
have my_gstring->str referenced elsewhere (otherwise you'd
do g_string_free(my_gstring, TRUE)).  So use g_free() on
that alias.

Yeti


--
Do not use tab characters. Their effect is not predictable.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]