GNOME Bugzilla – Bug 301034
add ref/unref to gkeyfile api
Last modified: 2011-02-18 16:11:07 UTC
in order to make this structure more "language bindings friendly" (for high level languages especially), I added a ref_count field and the g_key_file_ref() and g_key_file_unref() functions.
Created attachment 45382 [details] [review] The proposed patch for ref/unref The new API is: void g_key_file_ref (GKeyFile *key_file); void g_key_file_unref (GKeyFile *key_file);
I'll consider this
None of the other glib structures is refcounted. It would be odd to start doing that for keyfile
Created attachment 149751 [details] [review] updated patch (use atomic refcounts)
now that GHashTable and other GLib structures are indeed refcounted we should probably re-investigate this. thanks for the patch, Christian.
Created attachment 151048 [details] [review] updated patch (fixes a warning on g_key_file_free)
Marking this duplicate of bug #590808. There are updated patches there. *** This bug has been marked as a duplicate of bug 590808 ***