From cc80f3bb68c6531509d72ce61ce551ed088384e2 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 6 Aug 2007 19:37:26 +0000 Subject: [PATCH] Add NULL-check on the padding in clutter_box_pack() --- clutter/clutter-box.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clutter/clutter-box.c b/clutter/clutter-box.c index 726675d8d..2e886b617 100644 --- a/clutter/clutter-box.c +++ b/clutter/clutter-box.c @@ -324,7 +324,9 @@ clutter_box_init (ClutterBox *box) /** * clutter_box_pack: * @box: a #ClutterBox - * @actor: a #ClutterActor + * @actor: a #ClutterActor to pack into the box + * @pack_type: Type of packing to use + * @padding: padding to use on the actor * * Packs @actor into @box. * @@ -340,6 +342,7 @@ clutter_box_pack (ClutterBox *box, g_return_if_fail (CLUTTER_IS_BOX (box)); g_return_if_fail (CLUTTER_IS_ACTOR (actor)); + g_return_if_fail (padding != NULL); child = g_slice_new (ClutterBoxChild); child->actor = actor;