Do a sanity check on _clutter_do_pick() arguments

We should check that the passed ClutterStage pointer is indeed: a) still
valid and b) a Stage.
This commit is contained in:
Emmanuele Bassi 2010-02-10 17:20:31 +00:00
parent d0734bc474
commit 59463c2213

View File

@ -572,6 +572,7 @@ _clutter_do_pick (ClutterStage *stage,
"The time spent issuing a read pixels",
0 /* no application private data */);
g_return_val_if_fail (CLUTTER_IS_STAGE (stage), NULL);
if (clutter_debug_flags & CLUTTER_DEBUG_NOP_PICKING)
return CLUTTER_ACTOR (stage);