elementary/transit - added missed wrn messages.
authorhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 2 Jul 2011 05:58:56 +0000 (05:58 +0000)
committerhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 2 Jul 2011 05:58:56 +0000 (05:58 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@60930 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_transit.c

index 09b442e..8141391 100644 (file)
@@ -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);