EINA_SAFETY_ON_NULL_RETURN_VAL(done_cb, NULL);
EINA_SAFETY_ON_NULL_RETURN_VAL(error_cb, NULL);
- copy = malloc(sizeof(Eio_Dir_Copy));
+ copy = eio_common_alloc(sizeof(Eio_Dir_Copy));
EINA_SAFETY_ON_NULL_RETURN_VAL(copy, NULL);
copy->progress.op = EIO_DIR_COPY;
EINA_SAFETY_ON_NULL_RETURN_VAL(done_cb, NULL);
EINA_SAFETY_ON_NULL_RETURN_VAL(error_cb, NULL);
- move = malloc(sizeof(Eio_Dir_Copy));
+ move = eio_common_alloc(sizeof(Eio_Dir_Copy));
EINA_SAFETY_ON_NULL_RETURN_VAL(move, NULL);
move->progress.op = EIO_DIR_MOVE;
EINA_SAFETY_ON_NULL_RETURN_VAL(done_cb, NULL);
EINA_SAFETY_ON_NULL_RETURN_VAL(error_cb, NULL);
- rmrf = malloc(sizeof(Eio_Dir_Copy));
+ rmrf = eio_common_alloc(sizeof(Eio_Dir_Copy));
EINA_SAFETY_ON_NULL_RETURN_VAL(rmrf, NULL);
rmrf->progress.op = EIO_UNLINK;
EINA_SAFETY_ON_NULL_RETURN_VAL(done_cb, NULL);
EINA_SAFETY_ON_NULL_RETURN_VAL(error_cb, NULL);
- async = malloc(sizeof(Eio_File_Dir_Ls));
+ async = eio_common_alloc(sizeof(Eio_File_Dir_Ls));
EINA_SAFETY_ON_NULL_RETURN_VAL(async, NULL);
/* Eio_Filter_Direct_Cb must be casted to Eio_Filter_Dir_Cb here
EINA_SAFETY_ON_NULL_RETURN_VAL(done_cb, NULL);
EINA_SAFETY_ON_NULL_RETURN_VAL(error_cb, NULL);
- async = malloc(sizeof(Eio_File_Dir_Ls));
+ async = eio_common_alloc(sizeof(Eio_File_Dir_Ls));
EINA_SAFETY_ON_NULL_RETURN_VAL(async, NULL);
async->ls.directory = eina_stringshare_add(dir);