[libsoup] soup-session: Fix a crash when destroying a NULL unpause source
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] soup-session: Fix a crash when destroying a NULL unpause source
- Date: Fri, 5 Jul 2013 17:54:31 +0000 (UTC)
commit 085f4e28907e91c5e5d6517c0205d4288167fd05
Author: Philip Withnall <philip tecnocode co uk>
Date: Tue Jul 2 15:00:47 2013 +0100
soup-session: Fix a crash when destroying a NULL unpause source
Closes: https://bugzilla.gnome.org/show_bug.cgi?id=703461
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 928b73e..497fd06 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]