From: Mike Gorse Date: Sat, 26 Nov 2011 21:50:55 +0000 (-0600) Subject: In GetItems, unref objects in two passes X-Git-Tag: AT_SPI2_ATK_2_12_0~167 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git;a=commitdiff_plain;h=770fcb6cf42143eebe5ebd9660a1c8737edaca6b;hp=770fcb6cf42143eebe5ebd9660a1c8737edaca6b In GetItems, unref objects in two passes It is dangerous to unref cache objects inside a g_hash_table_foreach, since, if the object is finalized, it will be removed, which can cause problems with the iterator. Instead, make a GSList of the objects to unref, then use this GSList to unref. ---