diff options
author | Xan Lopez <xan@igalia.com> | 2013-03-26 19:19:41 +0100 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2013-03-26 19:19:41 +0100 |
commit | 2c8008a905df7a67e18ec9642ac7d7905da3f3ce (patch) | |
tree | c271f4971e8f9d718371184aa94a00420836520c /gio/gtask.c | |
parent | fdd3cf921cf32ac5d281df025b45f888cb93d9ff (diff) | |
download | glib-2c8008a905df7a67e18ec9642ac7d7905da3f3ce.tar.gz glib-2c8008a905df7a67e18ec9642ac7d7905da3f3ce.tar.bz2 glib-2c8008a905df7a67e18ec9642ac7d7905da3f3ce.zip |
gtask: free error on finalize if it's set
https://bugzilla.gnome.org/show_bug.cgi?id=696652
Diffstat (limited to 'gio/gtask.c')
-rw-r--r-- | gio/gtask.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gio/gtask.c b/gio/gtask.c index bdef1f4f3..6c7222e22 100644 --- a/gio/gtask.c +++ b/gio/gtask.c @@ -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); |