summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJi-Youn Park <jy0703.park@samsung.com>2015-06-15 22:38:12 +0900
committerJi-Youn Park <jy0703.park@samsung.com>2015-06-15 22:38:12 +0900
commitd15eb743a4521daf42070427d95869257c53b891 (patch)
tree31234721ae81d52c3cc3d4eac1c0486ad224bab5
parent6e86cd7de3a6ce6d2ef81bcb5a105fc0e6916c56 (diff)
elm_flip: small error handle fix
if we cannot create slice, we had better stop to change slice
-rw-r--r--src/lib/elm_flip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elm_flip.c b/src/lib/elm_flip.c
index 8776a5d22..29cd214c8 100644
--- a/src/lib/elm_flip.c
+++ b/src/lib/elm_flip.c
@@ -746,6 +746,7 @@ _state_update(Evas_Object *obj)
746 if (!sl) 746 if (!sl)
747 { 747 {
748 sl = _slice_new(obj, front); 748 sl = _slice_new(obj, front);
749 if (!sl) return 0;
749 sd->slices[nn] = sl; 750 sd->slices[nn] = sl;
750 } 751 }
751 _slice_xyz(sd, sl, 752 _slice_xyz(sd, sl,
@@ -766,6 +767,7 @@ _state_update(Evas_Object *obj)
766 if (!sl) 767 if (!sl)
767 { 768 {
768 sl = _slice_new(obj, back); 769 sl = _slice_new(obj, back);
770 if (!sl) return 0;
769 sd->slices2[nn] = sl; 771 sd->slices2[nn] = sl;
770 } 772 }
771 773