GNOME Bugzilla – Bug 692202
gfile: don't report completion twice on g_file_load_contents error
Last modified: 2013-01-24 12:58:59 UTC
A regression from the port to GTask
Created attachment 234011 [details] [review] gfile: don't report completion twice on g_file_load_contents error When an error occurs while reading the file input stream in g_file_load_contents (e.g. because the operation was cancelled), the code is correctly calling g_task_return_error(), but in the callback from the close operation, g_task_return_boolean() will be called again. Code that cleans up its state in the async callback will then be called twice, leading to invalid memory access.
Comment on attachment 234011 [details] [review] gfile: don't report completion twice on g_file_load_contents error looks right
Attachment 234011 [details] pushed as e908b50 - gfile: don't report completion twice on g_file_load_contents error
*** Bug 692444 has been marked as a duplicate of this bug. ***