soup-message-io: fix crash when doing unpause+cancel
authorDan Winship <danw@gnome.org>
Tue, 11 Dec 2012 09:52:00 +0000 (10:52 +0100)
committerDan Winship <danw@gnome.org>
Tue, 11 Dec 2012 09:52:00 +0000 (10:52 +0100)
commit5651d18eb8c9edff5961a32c488641bf6776ca6b
tree9c1ed8702899fe8ab58c43a7a0d9a032bc5c56ec
parent93c0b8808b9cfa4cbcf3ef014385016ed8bd5038
soup-message-io: fix crash when doing unpause+cancel

soup_message_io_stop() was unreffing unpause_source (if it was set),
but it didn't actually own a ref on it, so this would crash.
Fortunately this would only happen if you unpaused a message and then
immediately cancelled it, which isn't very common. Fixes a sporadic
chunk-test crash though.
libsoup/soup-message-io.c