From d08d568e4d2784efe86e8bae15d21b8c7092a0a9 Mon Sep 17 00:00:00 2001 From: Tae-Hwan Kim Date: Thu, 25 Apr 2013 23:26:51 +0900 Subject: [PATCH] [Genlist] Prevent unneeded callbacks If application call class_free explicitly, do not use callbacks anymore Change-Id: Ib4c7905a01e37add4e544b6f4134b1c1bcfe3c7e --- src/lib/elm_genlist.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index afe1337..fea7358 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -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 { -- 2.7.4