I have a question concerning g_object_set_data(). The documentation says:
keyis converted to a GQuark using
g_quark_from_string(). This means a copy of
keyis kept permanently (even after
objecthas been finalized) — so it is recommended to only use a small, bounded set of values for
keyin your program, to avoid the GQuark storage growing unbounded.
If I have a program that continuously sets the same key (let’s call it
"my_key") to always new GObjects, does this mean that the GQuark storage will keep growing unbounded? Or do I have to assign different keys (let’s say
"my_key_3", …) for this to happen?
The documentation seems to suggest that the unbounded growth happens only in case of different strings for the key name (
"my_key_3", …), but I am not completely sure.