[Genlist] Prevent unneeded callbacks
authorTae-Hwan Kim <the81.kim@samsung.com>
Thu, 25 Apr 2013 14:26:51 +0000 (23:26 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 04:31:37 +0000 (13:31 +0900)
If application call class_free explicitly, do not use callbacks anymore

Change-Id: Ib4c7905a01e37add4e544b6f4134b1c1bcfe3c7e

src/lib/elm_genlist.c

index afe1337..fea7358 100644 (file)
@@ -6877,7 +6877,11 @@ elm_genlist_item_class_free(Elm_Genlist_Item_Class *itc)
 {
    if (itc && (itc->version == CLASS_ALLOCATED))
      {
-        if (!itc->delete_me) itc->delete_me = EINA_TRUE;
+        itc->delete_me = EINA_TRUE;
+        itc->func.text_get = NULL;
+        itc->func.content_get = NULL;
+        itc->func.state_get = NULL;
+        itc->func.del = NULL;
         if (itc->refcount > 0) elm_genlist_item_class_unref(itc);
         else
           {