GHash: make sets with refcounted keys work correctly
authorMatthias Clasen <mclasen@redhat.com>
Sun, 1 May 2011 14:55:24 +0000 (10:55 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 1 May 2011 14:55:24 +0000 (10:55 -0400)
commitd09df426ba3788174b5bcc974831651208a13ea2
treeecd57c0f12b4a14a540a64f1ff26e88a189860b8
parentbe991170fa99185b7cf1dbf3f9bc62c9d656a08a
GHash: make sets with refcounted keys work correctly

When keys == values, we have to be careful about the order in
which we replace their elements.
glib/ghash.c
glib/tests/hash.c