diff options
| author | Philip Withnall <philip@tecnocode.co.uk> | 2013-07-02 15:00:47 +0100 |
|---|---|---|
| committer | Philip Withnall <philip@tecnocode.co.uk> | 2013-07-05 18:53:40 +0100 |
| commit | 085f4e28907e91c5e5d6517c0205d4288167fd05 (patch) | |
| tree | 33db4e49682c0349a3922363dc658b55b0b40a4b /libsoup/soup-message-io.c | |
| parent | 09727545304e22b3c31df344ca58ef979e43f8e5 (diff) | |
| download | libsoup-085f4e28907e91c5e5d6517c0205d4288167fd05.tar.gz | |
soup-session: Fix a crash when destroying a NULL unpause source
Closes: https://bugzilla.gnome.org/show_bug.cgi?id=703461
Diffstat (limited to 'libsoup/soup-message-io.c')
| -rw-r--r-- | libsoup/soup-message-io.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libsoup/soup-message-io.c b/libsoup/soup-message-io.c index 928b73ef..497fd063 100644 --- a/libsoup/soup-message-io.c +++ b/libsoup/soup-message-io.c @@ -1149,8 +1149,7 @@ io_unpause_internal (gpointer msg) g_return_val_if_fail (io != NULL, FALSE); - g_source_unref (io->unpause_source); - io->unpause_source = NULL; + g_clear_pointer (&io->unpause_source, g_source_unref); io->paused = FALSE; if (io->io_source) |
