GNOME Bugzilla – Bug 690532
memory leak when registering enum types
Last modified: 2012-12-20 08:53:37 UTC
When registering enum or flag types, we first dup the string, but this is not necessary. G_flags_register_static and g_enum_register_static call g_type_register_static, which eventually calls type_node_any_new_W, which passes the type name to g_quark_from_string, which itself dups the string if needed, resulting in a small leak.
Created attachment 231944 [details] [review] Patch.
Thank you! Applied.