-
Alexander Larsson authored
We need to keep a reference to the handler in the fast path, just like in the slow path, otherwise if another thread disconnects the handler we may destroy the closure while we're using it without the lock held. We also move the freeing of the instance to after the emission is totally done as the handler_unref_R (and the tracepoint) reference it. https://bugzilla.gnome.org/show_bug.cgi?id=694253
aede7746