gtask: free error on finalize if it's set

https://bugzilla.gnome.org/show_bug.cgi?id=696652
This commit is contained in:
Xan Lopez 2013-03-26 19:19:41 +01:00
parent fdd3cf921c
commit 2c8008a905

View File

@ -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);