Ecore_Thread *thread;
Ecore_File_Monitor *dir_mon;
- int wait_finish;
+ int waiting_to_finish;
};
struct _Data
Plugin *p = d->plugin;
Evry_Item_File *file;
- EINA_LIST_FREE(p->files, file)
- EVRY_ITEM_FREE(file);
+ /* EINA_LIST_FREE(p->files, file)
+ * EVRY_ITEM_FREE(file); */
EINA_LIST_FREE(d->files, file)
{
p->thread = NULL;
- if (p->wait_finish)
+ if (p->waiting_to_finish)
E_FREE(p);
free(d->directory);
IF_RELEASE(p->directory);
if (p->thread)
- {
- ecore_thread_cancel(p->thread);
- p->wait_finish = 1;
- p->thread = NULL;
- }
+ p->waiting_to_finish = 1;
_free_files(p);
- if (!p->wait_finish)
+ if (!p->waiting_to_finish)
E_FREE(p);
}
Evry_Item_File *file;
EINA_LIST_FREE(d->files, file)
- {
- EVRY_ITEM_FREE(file);
- }
+ EVRY_ITEM_FREE(file);
E_FREE(d);
- if (p->wait_finish)
+ if (p->waiting_to_finish)
E_FREE(p);
}