+elementary (1.0.0+svn.58393slp2+build33) unstable; urgency=low
+
+ * [store] Fixed the item info free
+ * Git: 165.213.180.234:slp/pkgs/e/elementary
+ * Tag: elementary_1.0.0+svn.58393slp2+build33
+
+ -- Ilkook Yun <ilkook.yun@samsung.com> Mon, 27 Jun 2011 17:57:17 +0900
+
elementary (1.0.0+svn.58393slp2+build32) unstable; urgency=low
* [store] Fixed the store item check
if (st->cb.item_free.func)
{
st->cb.item_free.func(st->cb.item_free.data, sti->item_info);
+ sti->item_info = NULL;
}
if (sti->fetched)
{
if (!EINA_MAGIC_CHECK(sti, ELM_STORE_ITEM_MAGIC)) return NULL;
const Elm_Store_Item_Mapping *m;
+ if(!sti->item_info)
+ {
+ return NULL;
+ }
+
for (m = sti->item_info->mapping; m; m++)
{
if (m->type == ELM_STORE_ITEM_MAPPING_NONE) break;
if (st->cb.item_free.func)
{
st->cb.item_free.func(st->cb.item_free.data, remove_item->item_info);
+ remove_item->item_info = NULL;
}
if (remove_item->fetched)
{
if (st->cb.item_free.func)
{
st->cb.item_free.func(st->cb.item_free.data, temp_sti->item_info);
+ temp_sti->item_info = NULL;
}
if (temp_sti->fetched)
{
if (header_list)
{
Elm_Store_Item *temp_sti = eina_list_nth(header_list, 0);
- if(temp_sti && temp_sti->item_info)
+ if(temp_sti && temp_sti->item_info && sti->item_info)
{
if (sti->item_info->group_index == temp_sti->item_info->group_index)
{
if (header_list)
{
Elm_Store_Item *temp_sti = eina_list_nth(header_list, 0);
- if(temp_sti && temp_sti->item_info)
+ if(temp_sti && temp_sti->item_info && sti->item_info)
{
if(temp_sti->item_info->item_type == ELM_GENLIST_ITEM_GROUP)
if (header_list)
{
Elm_Store_Item *header_item = eina_list_nth(header_list, 0);
- if(header_item && header_item->item_info)
+ if(header_item && header_item->item_info && sti->item_info)
{
if (header_item->item_info->group_index == sti->item_info->group_index)
if (st->cb.item_free.func)
{
st->cb.item_free.func(st->cb.item_free.data, remove_sti->item_info);
+ remove_sti->item_info = NULL;
}
if (remove_sti->fetched)
{
if (st->cb.item_free.func)
{
st->cb.item_free.func(st->cb.item_free.data, temp_sti->item_info);
+ temp_sti->item_info = NULL;
}
if (temp_sti->fetched)
{