server: keep a ref on the client context while clearing up
authorJonny Lamb <jonnylamb@gnome.org>
Wed, 4 Apr 2012 00:54:25 +0000 (20:54 -0400)
committerJonny Lamb <jonnylamb@gnome.org>
Wed, 4 Apr 2012 14:57:44 +0000 (10:57 -0400)
commit2233462ae94aa648ffe4bd910ef6e05e87c2ccc0
tree8187b3e8f20ed96365581deb7b7d6024c4010476
parentfecc55438abff5746328fd447a81af2bd73dc2aa
server: keep a ref on the client context while clearing up

We need to keep a ref on the client context struct for the duration of
the cleanup otherwise it will be disposed of before the
SoupSocket::disconnect callback is called, and that will dereference
the old client context pointer.

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=673468

Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
libsoup/soup-server.c