fix crash in pre-built applications on reusable content get
authorSangHyeon Lee <sh10233.lee@samsung.com>
Wed, 2 Nov 2016 07:20:59 +0000 (16:20 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 8 Nov 2016 01:46:30 +0000 (10:46 +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 2d52e50..997d630 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)