[gsignal] fix up a crasher in previous commit
authorRyan Lortie <desrt@desrt.ca>
Mon, 8 Oct 2012 15:18:00 +0000 (11:18 -0400)
committerRyan Lortie <desrt@desrt.ca>
Mon, 8 Oct 2012 15:21:58 +0000 (11:21 -0400)
The previous commit introduced a new variable in the Handler struct but
didn't initialise it.  This was causing some tests to crash.

https://bugzilla.gnome.org/show_bug.cgi?id=118536

gobject/gsignal.c

index 0b38a9c..70167af 100644 (file)
@@ -587,6 +587,7 @@ handler_new (gboolean after)
   handler->block_count = 0;
   handler->after = after != FALSE;
   handler->closure = NULL;
+  handler->has_invalid_closure_notify = 0;
   
   return handler;
 }