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:
parent
d0734bc474
commit
59463c2213
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user