fix crash in pre-built applications on reusable content get 50/95050/3 accepted/tizen/common/20161103.155753 accepted/tizen/ivi/20161103.230213 accepted/tizen/mobile/20161103.230122 accepted/tizen/tv/20161103.230138 accepted/tizen/wearable/20161103.230157 submit/tizen/20161102.045635
authorSangHyeon Lee <sh10233.lee@samsung.com>
Wed, 2 Nov 2016 07:20:59 +0000 (16:20 +0900)
committerSangHyeon Lee <sh10233.lee@samsung.com>
Wed, 2 Nov 2016 07:33:05 +0000 (16:33 +0900)
Change-Id: I8cf21d78f27617968b31ce8e80d4771e11f11a57
Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
src/lib/elm_genlist.c
src/mobile_lib/elm_genlist.c

index f3ac96c..1a8e75e 100644 (file)
@@ -385,7 +385,7 @@ _item_content_realize(Elm_Gen_Item *it,
 
         // Reuse content by popping from the cache
         content = NULL;
-        if (it->itc->func.reusable_content_get)
+        if (it->itc->version >= 3 && it->itc->func.reusable_content_get)
           content = it->itc->func.reusable_content_get(
              (void *)WIDGET_ITEM_DATA_GET(EO_OBJ(it)), WIDGET(it), key, old);
         if (!content)
index 243db0c..a1e4abc 100644 (file)
@@ -765,7 +765,7 @@ _item_content_realize(Elm_Gen_Item *it,
 
         // Reuse content by popping from the cache
         content = NULL;
-        if (it->itc->func.reusable_content_get)
+        if (it->itc->version >= 3 && it->itc->func.reusable_content_get)
           content = it->itc->func.reusable_content_get(
              (void *)WIDGET_ITEM_DATA_GET(EO_OBJ(it)), WIDGET(it), key, old);
         if (!content)