2008-01-14 Tommi Komulainen <tommi.komulainen@iki.fi>

reviewed by: Emmanuele Bassi  <ebassi@openedhand.com>

	* clutter/osx/clutter-event-osx.c (_clutter_event_osx_put):
	Initialize ClutterEvent structure with zeroes (#672)

	The 'source' member was uninitialized and being referenced in
	clutter_do_event leading to crash.
This commit is contained in:
Emmanuele Bassi 2008-01-14 13:59:27 +00:00
parent 71127caa65
commit 756ea6693f
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,13 @@
2008-01-14 Tommi Komulainen <tommi.komulainen@iki.fi>
reviewed by: Emmanuele Bassi <ebassi@openedhand.com>
* clutter/osx/clutter-event-osx.c (_clutter_event_osx_put):
Initialize ClutterEvent structure with zeroes (#672)
The 'source' member was uninitialized and being referenced in
clutter_do_event leading to crash.
2008-01-14 Emmanuele Bassi <ebassi@openedhand.com> 2008-01-14 Emmanuele Bassi <ebassi@openedhand.com>
* tests/test-scale.c: Improve test case for scaling (#684, * tests/test-scale.c: Improve test case for scaling (#684,

View File

@ -231,8 +231,7 @@ clutter_event_osx_translate (NSEvent *nsevent, ClutterEvent *event)
void void
_clutter_event_osx_put (NSEvent *nsevent) _clutter_event_osx_put (NSEvent *nsevent)
{ {
ClutterEvent event; ClutterEvent event = { 0, };
event.type = CLUTTER_NOTHING;
if (clutter_event_osx_translate (nsevent, &event)) if (clutter_event_osx_translate (nsevent, &event))
{ {