diff options
author | Mike Gorse <mgorse@novell.com> | 2012-03-13 16:02:30 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-03-14 06:01:36 -0400 |
commit | 53b1afba0eb94f7f836b408d81da7b58c374dc3f (patch) | |
tree | d21366b9f2100cf4fe318a16d77f585b39327b9c /gobject | |
parent | fbbdf98668641a6e6494dacb5f5f13703145e6f8 (diff) |
Invalidate single_va_closure when adding an emission hook
If the optimization is used for only having one closure handling a
signal emission, then hooks will not be run, so it should be disabled
when an emission hook is added.
https://bugzilla.gnome.org/show_bug.cgi?id=671918
Diffstat (limited to 'gobject')
-rw-r--r-- | gobject/gsignal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gobject/gsignal.c b/gobject/gsignal.c index 8e067c333..7c90a7a2e 100644 --- a/gobject/gsignal.c +++ b/gobject/gsignal.c @@ -972,6 +972,7 @@ g_signal_add_emission_hook (guint signal_id, SIGNAL_UNLOCK (); return 0; } + node->single_va_closure_is_valid = FALSE; if (!node->emission_hooks) { node->emission_hooks = g_new (GHookList, 1); |