soup-message-queue: hold a reference to the async context
authorSergio Villar Senin <svillar@igalia.com>
Mon, 4 Mar 2013 10:26:17 +0000 (11:26 +0100)
committerSergio Villar Senin <svillar@igalia.com>
Mon, 4 Mar 2013 14:36:13 +0000 (15:36 +0100)
commit6c24fd0e6d3d6a1b18829e72e2508ad6fcf6f9e7
treee185e3da8500441374c2bfca4a683f5a3ddeae75
parent5057f867f1e58fff45383f4a07ec1b6df3475342
soup-message-queue: hold a reference to the async context

This will ensure that the GMainContext is not freed at least until we get
rid of the queue item. This was causing crashes when synchronously
retrieving resources in WebKit as it uses a different GMainContext for each
of those synchronous requests.

https://bugzilla.gnome.org/show_bug.cgi?id=694920
libsoup/soup-message-queue.c