rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=f4972da629b4e0cb7df79900804726112aae81e1

commit f4972da629b4e0cb7df79900804726112aae81e1
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Tue Jun 20 13:44:59 2017 +0300

    property: avoid situation to add data to uninit Eina_List
---
 src/bin/ui/property/property_common_tween.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/bin/ui/property/property_common_tween.c 
b/src/bin/ui/property/property_common_tween.c
index 99c331705..2c5a2114c 100644
--- a/src/bin/ui/property/property_common_tween.c
+++ b/src/bin/ui/property/property_common_tween.c
@@ -68,8 +68,8 @@ _item_del(void *data,
 
 /* tweens functions */
 
-static Eina_List *deleted_tweens;
-static Eina_List *added_tweens;
+static Eina_List *deleted_tweens = NULL;
+static Eina_List *added_tweens = NULL;;
 
 static void
 _del_tween_image(void *data,
@@ -110,7 +110,8 @@ _on_image_editor_tween_done(void *data,
         added_tweens = eina_list_append(added_tweens, name);
      }
 
-   evas_object_smart_callback_call(control, 
signals.eflete.property.image_tween_control.changed, NULL);
+   if (added_tweens)
+     evas_object_smart_callback_call(control, 
signals.eflete.property.image_tween_control.changed, NULL);
 TODO("apply when popup will be fixed");
 //   elm_object_scroll_freeze_pop(tween_list);
 
@@ -162,6 +163,8 @@ property_image_tween_lists_free()
           eina_stringshare_del(eina_list_data_get(deleted_tweens));
         deleted_tweens = eina_list_remove(deleted_tweens, 
eina_list_data_get(deleted_tweens));
      }
+   added_tweens = NULL;
+   deleted_tweens = NULL;
 }
 
 void

-- 


Reply via email to