background: Fix reference counting in background XML loader
Commit b9e3603b added an unref to fix a memory leak, but it went to a wrong place -- in XML loader, all items are stored in a hash table that takes ownership of them, and destroyed when the hash table goes away. This commit fixes the reference counting in the XML loader and adds explicit g_object_ref / g_strdup when inserting values to the hash table to make the memory management more obvious. The following commit fixes the real leak. https://bugzilla.gnome.org/show_bug.cgi?id=709453
parent
24faa84d
Please register or sign in to comment