[store] Rollback the store item remove when store free
authorYun ilkook <ilkook.yun@samsung.com>
Tue, 28 Jun 2011 08:57:27 +0000 (17:57 +0900)
committerYun ilkook <ilkook.yun@samsung.com>
Tue, 28 Jun 2011 08:57:27 +0000 (17:57 +0900)
src/lib/elm_store.c

index a77f878..f8daf1f 100644 (file)
@@ -681,9 +681,7 @@ elm_store_free(Elm_Store *st)
                                  int index = elm_store_item_index_get(sti);
                                  if (index != -1) _item_unfetch(st, index);
                               }
-                            header_list = eina_list_remove(header_list, sti);
                             LKD(sti->lock);
-                            free(sti);
                          }
                     }
                   st->header_items = eina_list_remove(st->header_items, header_list);