mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Cleanup
This commit is contained in:
parent
2a8d984d89
commit
a3ae0e9a90
@ -124,16 +124,16 @@ static void rarch_task_decompress_handler_finished(rarch_task_t *task,
|
||||
if (!task->error && task->cancelled)
|
||||
task->error = strdup("Task canceled");
|
||||
|
||||
if (!task->error)
|
||||
if (task->error)
|
||||
free(dec->source_file);
|
||||
else
|
||||
{
|
||||
decompress_task_data_t *data =
|
||||
(decompress_task_data_t*)calloc(1, sizeof(*data));
|
||||
|
||||
data->source_file = dec->source_file;
|
||||
task->task_data = data;
|
||||
task->task_data = data;
|
||||
}
|
||||
else
|
||||
free(dec->source_file);
|
||||
|
||||
if (dec->subdir)
|
||||
free(dec->subdir);
|
||||
|
Loading…
x
Reference in New Issue
Block a user