From 7a7fe68f02787d08e10b26e85b9478800101d0d4 Mon Sep 17 00:00:00 2001 From: hermet Date: Sat, 2 Jul 2011 05:58:56 +0000 Subject: [PATCH] elementary/transit - added missed wrn messages. git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@60930 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_transit.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_transit.c b/src/lib/elm_transit.c index 09b442e..8141391 100644 --- a/src/lib/elm_transit.c +++ b/src/lib/elm_transit.c @@ -2055,7 +2055,11 @@ elm_transit_effect_blend_add(Elm_Transit *transit) ELM_TRANSIT_CHECK_OR_RETURN(transit, NULL); Elm_Transit_Effect *effect = _transit_effect_blend_context_new(); - if (!effect) return NULL; + if (!effect) + { + ERR("Failed to allocate blend effect! : transit=%p", transit); + return NULL; + } elm_transit_effect_add(transit, _transit_effect_blend_op, effect, _transit_effect_blend_context_free); @@ -2134,7 +2138,11 @@ elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float t ELM_TRANSIT_CHECK_OR_RETURN(transit, NULL); Elm_Transit_Effect *effect = _transit_effect_rotation_context_new(from_degree, to_degree); - if (!effect) return NULL; + if (!effect) + { + ERR("Failed to allocate rotation effect! : transit=%p", transit); + return NULL; + } elm_transit_effect_add(transit, _transit_effect_rotation_op, effect, _transit_effect_rotation_context_free); -- 2.7.4