From 96dbf0025bdcd354e607320df60ee71b0af325a3 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 3 Nov 2006 17:54:02 +0000 Subject: [PATCH] Fix leaks pointed out by Paolo Borelli. #351500 * libsoup/soup-server.c (get_property): Fix leaks pointed out by Paolo Borelli. #351500 --- ChangeLog | 3 +++ libsoup/soup-server.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3c7edeb..16cf53d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-11-03 Dan Winship + * libsoup/soup-server.c (get_property): Fix leaks pointed out by + Paolo Borelli. #351500 + * configure.in: Use pkgconfig to find gnutls. Remove old static linking stuff that was only needed for rcd. diff --git a/libsoup/soup-server.c b/libsoup/soup-server.c index 4c26830..90357c9 100644 --- a/libsoup/soup-server.c +++ b/libsoup/soup-server.c @@ -229,13 +229,13 @@ get_property (GObject *object, guint prop_id, g_value_set_uint (value, priv->port); break; case PROP_INTERFACE: - g_value_set_object (value, g_object_ref (priv->interface)); + g_value_set_object (value, priv->interface); break; case PROP_SSL_CERT_FILE: - g_value_set_string (value, g_strdup (priv->ssl_cert_file)); + g_value_set_string (value, priv->ssl_cert_file); break; case PROP_SSL_KEY_FILE: - g_value_set_string (value, g_strdup (priv->ssl_key_file)); + g_value_set_string (value, priv->ssl_key_file); break; case PROP_ASYNC_CONTEXT: g_value_set_pointer (value, priv->async_context ? g_main_context_ref (priv->async_context) : NULL); -- 2.7.4