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>
* tests/test-scale.c: Improve test case for scaling (#684,

View File

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