summaryrefslogtreecommitdiff
path: root/src/doc-data.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc-data.c')
-rw-r--r--src/doc-data.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/doc-data.c b/src/doc-data.c
index d843af6..080c32d 100644
--- a/src/doc-data.c
+++ b/src/doc-data.c
@@ -134,31 +134,31 @@ int doc_data_get_media_data(doc_ugdata *ugd, int type, int start_pos,
if ((err == 0) && (itemlist != NULL)) {
doc_media_s *item = NULL;
- doc_item* gitem = NULL;
+ doc_item* ditem = NULL;
EINA_LIST_FREE(itemlist, item) {
if (item == NULL || item->uuid == NULL) {
doc_dbgE("Invalid item!");
continue;
}
- gitem = doc_data_util_calloc_geitem();
- if (gitem == NULL) {
- doc_dbgE("doc_data_util_calloc_geitem() failed");
- doc_data_type_free_geitem((void **)&item);
+ ditem = doc_data_util_calloc_item();
+ if (ditem == NULL) {
+ doc_dbgE("doc_data_util_calloc_item() failed");
+ doc_data_type_free_item((void **)&item);
continue;
}
- gitem->item = item;
- gitem->ugd = ugd;
- gitem->store_type = type;
+ ditem->item = item;
+ ditem->ugd = ugd;
+ ditem->store_type = type;
*pmedias_elist = eina_list_append(*pmedias_elist,
- gitem);
+ ditem);
if (restore_cb && sel_id) {
- restore_cb(sel_id, gitem);
+ restore_cb(sel_id, ditem);
}
item = NULL;
- gitem = NULL;
+ ditem = NULL;
}
} else {
/* Free Mitems */