Re: newbie: g_string_free(..., FALSE)
- From: "David Necas (Yeti)" <yeti physics muni cz>
- To: "F. Kater" <f kater2 gmx net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: newbie: g_string_free(..., FALSE)
- Date: Wed, 15 Sep 2004 12:38:56 +0200
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]