From 59463c2213b79a553d3d7999bb56106fb7c5a4ad Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 10 Feb 2010 17:20:31 +0000 Subject: [PATCH] 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. --- clutter/clutter-main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c index f48384909..9cb4fd066 100644 --- a/clutter/clutter-main.c +++ b/clutter/clutter-main.c @@ -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);