A question about GQuark
- From: Lyre <4179e1 gmail com>
- To: gtk-list gnome org
- Subject: A question about GQuark
- Date: Thu, 13 Aug 2009 17:45:57 +0800
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]