mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
gfileenumerator: fix leak in error path
Found by Coverity.
This commit is contained in:
parent
719484a575
commit
8bfc299813
@ -787,7 +787,10 @@ next_files_thread (GTask *task,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (error)
|
if (error)
|
||||||
|
{
|
||||||
|
g_list_free_full (files, g_object_unref);
|
||||||
g_task_return_error (task, error);
|
g_task_return_error (task, error);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
g_task_return_pointer (task, files, (GDestroyNotify)next_async_op_free);
|
g_task_return_pointer (task, files, (GDestroyNotify)next_async_op_free);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user