aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVyacheslav Reutskiy <v.reutskiy@samsung.com>2017-06-20 13:44:59 +0300
committerVyacheslav Reutskiy <v.reutskiy@samsung.com>2017-06-21 11:00:24 +0300
commitf4972da629b4e0cb7df79900804726112aae81e1 (patch)
treec8354cb000f9955aafcd6c38f4ec9361643e3156
parentproperty: correct update 'filter' combobox data on part delete (diff)
downloadeflete-f4972da629b4e0cb7df79900804726112aae81e1.tar.gz
property: avoid situation to add data to uninit Eina_List
-rw-r--r--src/bin/ui/property/property_common_tween.c9
1 files 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