mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gtask: free error on finalize if it's set
https://bugzilla.gnome.org/show_bug.cgi?id=696652
This commit is contained in:
parent
fdd3cf921c
commit
2c8008a905
@ -640,6 +640,9 @@ g_task_finalize (GObject *object)
|
||||
if (task->result_destroy && task->result.pointer)
|
||||
task->result_destroy (task->result.pointer);
|
||||
|
||||
if (task->error)
|
||||
g_error_free (task->error);
|
||||
|
||||
if (G_TASK_IS_THREADED (task))
|
||||
{
|
||||
g_mutex_clear (&task->lock);
|
||||
|
Loading…
Reference in New Issue
Block a user