A question about GQuark



the document of function g_quark_from_string () says: Gets the GQuark
identifying the given string. If the string does not currently have an
associated GQuark, a new GQuark is created, using a copy of the
string.

for example, i wrote some codes like this:

GQuark quark;
quark = g_quark_from_string("a string");

/* do something */

and now i don't need quark anymore.
but the document didn't mentioned about the copy of the string, should
i free the copeid string ? and how? if not, why?

i don't know if it's proper to ask here, but i can't find a glib mailling list.

--
-- Lyre


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