[libsoup] Eliminate leak of GTlsInteraction if re-specified
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] Eliminate leak of GTlsInteraction if re-specified
- Date: Wed, 17 Jun 2020 08:49:38 +0000 (UTC)
commit 4c6b7d1550a299e1afe1db217759a67e9806d62b
Author: Scott Hutton <schutton cisco com>
Date: Tue Jun 16 11:53:45 2020 -0700
Eliminate leak of GTlsInteraction if re-specified
libsoup/soup-session.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index d47133e4..f45d80e7 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -685,6 +685,7 @@ soup_session_set_property (GObject *object, guint prop_id,
socket_props_changed = TRUE;
break;
case PROP_TLS_INTERACTION:
+ g_clear_object(&priv->tls_interaction);
priv->tls_interaction = g_value_dup_object (value);
socket_props_changed = TRUE;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]