Fix deadlock in g_object_remove_toggle_ref()
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 22 Oct 2010 11:20:54 +0000 (13:20 +0200)
committerRyan Lortie <desrt@desrt.ca>
Fri, 22 Oct 2010 12:52:41 +0000 (14:52 +0200)
commita62b43fd9cea5455bead9a5bd12a27f01c4fadf4
treed881097143213311a48c205c2a9ff5988e881629
parentb7616114c6c1884c3a183a4d83156bdf2151b731
Fix deadlock in g_object_remove_toggle_ref()

The code section guarded with toggle_refs_mutex includes a call to
g_object_unref(), which may call toggle_refs_notify(). As the latter
tries to acquire the same mutex, glib locks up.

https://bugzilla.gnome.org/show_bug.cgi?id=632884
gobject/gobject.c