summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <chuneon.park@samsung.com>2020-05-26 14:49:46 +0900
committerHermet Park <chuneon.park@samsung.com>2020-05-26 14:49:46 +0900
commit181b316db159ef5491295946575464b12232b3a1 (patch)
tree8bdf7570e897b162037b77c3495539a3b0eca433
parent5855a093b81d6f17ca7a3c681422bc3a997bebca (diff)
--
-rw-r--r--src/lib/evas/canvas/efl_canvas_object_animation.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_object_animation.c b/src/lib/evas/canvas/efl_canvas_object_animation.c
index d62d5890e8..a017f73b96 100644
--- a/src/lib/evas/canvas/efl_canvas_object_animation.c
+++ b/src/lib/evas/canvas/efl_canvas_object_animation.c
@@ -167,7 +167,6 @@ _efl_canvas_object_animation_animation_start(Eo *obj, Efl_Canvas_Object_Animatio
167 efl_canvas_object_animation_stop(obj); 167 efl_canvas_object_animation_stop(obj);
168 EINA_SAFETY_ON_FALSE_RETURN(!pd->in); 168 EINA_SAFETY_ON_FALSE_RETURN(!pd->in);
169 in = pd->in = calloc(1, sizeof(Efl_Canvas_Object_Animation_Indirect_Data)); 169 in = pd->in = calloc(1, sizeof(Efl_Canvas_Object_Animation_Indirect_Data));
170 ERR("alloc pd->in = %p", pd->in);
171 170
172 EINA_SAFETY_ON_NULL_RETURN(animation); 171 EINA_SAFETY_ON_NULL_RETURN(animation);
173 EINA_SAFETY_ON_FALSE_RETURN(start_pos >= 0.0 && start_pos <= 1.0); 172 EINA_SAFETY_ON_FALSE_RETURN(start_pos >= 0.0 && start_pos <= 1.0);
@@ -196,7 +195,6 @@ _efl_canvas_object_animation_animation_start(Eo *obj, Efl_Canvas_Object_Animatio
196EOLIAN static void 195EOLIAN static void
197_efl_canvas_object_animation_animation_stop(Eo *obj, Efl_Canvas_Object_Animation_Data *pd) 196_efl_canvas_object_animation_animation_stop(Eo *obj, Efl_Canvas_Object_Animation_Data *pd)
198{ 197{
199 ERR("animation stop!");
200 if (!pd->in) return; 198 if (!pd->in) return;
201 199
202 if (!efl_animation_final_state_keep_get(pd->in->animation)) 200 if (!efl_animation_final_state_keep_get(pd->in->animation))
@@ -209,10 +207,7 @@ _efl_canvas_object_animation_animation_stop(Eo *obj, Efl_Canvas_Object_Animation
209 207
210 //this could be NULL if some weird callstack calls stop again while the above event is executed 208 //this could be NULL if some weird callstack calls stop again while the above event is executed
211 if (pd->in) 209 if (pd->in)
212 { 210 free(pd->in);
213 ERR("free pd->in = %p", pd->in);
214 free(pd->in);
215 }
216 pd->in = NULL; 211 pd->in = NULL;
217} 212}
218 213