summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-20 08:44:48 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-20 08:44:48 +0000
commit7ec288beb2bf883314a6c943d6b07a75115e49d5 (patch)
tree0db95ce7fbf9567e11a185a2ba77890a4a0c4d6d /src/lib
parent578e621023db5569cb07f5645635b1bfd8fc0f60 (diff)
elm genlist: Fixed grid segfault issue. Patch by Hyoyoung Chang
<hyoyoung@gmail.com> On Fri, Apr 20, 2012 at 4:10 PM, Hyoyoung Chang <hyoyoung@gmail.com> wrote: > Dear all, > > After introduced flipped mode to genlist, some clearing process is > added to _elm_genlist_item_unrealize. > In item _elm_genlist_item_unrealize, item is casting to gengrid item > or genlist item. > segfault is occurred in _elm_genlist_item_unrealize at using gengrid. > this patch moves flipped mode clearing process to _item_realize_cb. > > Thanks. > SVN revision: 70355
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elm_genlist.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index c86072b38..8ef085193 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -2253,6 +2253,12 @@ _item_realize(Elm_Gen_Item *it,
2253static void 2253static void
2254_item_unrealize_cb(Elm_Gen_Item *it) 2254_item_unrealize_cb(Elm_Gen_Item *it)
2255{ 2255{
2256 Evas_Object *content;
2257 elm_widget_stringlist_free(it->item->flip_contents);
2258 it->item->flip_contents = NULL;
2259 EINA_LIST_FREE(it->item->flip_content_objs, content)
2260 evas_object_del(content);
2261
2256 if (it->item->nocache_once || it->item->nocache) 2262 if (it->item->nocache_once || it->item->nocache)
2257 { 2263 {
2258 evas_object_del(VIEW(it)); 2264 evas_object_del(VIEW(it));
@@ -5878,11 +5884,6 @@ _elm_genlist_item_unrealize(Elm_Gen_Item *it,
5878 EINA_LIST_FREE(it->content_objs, content) 5884 EINA_LIST_FREE(it->content_objs, content)
5879 evas_object_del(content); 5885 evas_object_del(content);
5880 5886
5881 elm_widget_stringlist_free(it->item->flip_contents);
5882 it->item->flip_contents = NULL;
5883 EINA_LIST_FREE(it->item->flip_content_objs, content)
5884 evas_object_del(content);
5885
5886 it->unrealize_cb(it); 5887 it->unrealize_cb(it);
5887 5888
5888 it->realized = EINA_FALSE; 5889 it->realized = EINA_FALSE;