Fix leaks pointed out by Paolo Borelli. #351500
authorDan Winship <danw@src.gnome.org>
Fri, 3 Nov 2006 17:54:02 +0000 (17:54 +0000)
committerDan Winship <danw@src.gnome.org>
Fri, 3 Nov 2006 17:54:02 +0000 (17:54 +0000)
* libsoup/soup-server.c (get_property): Fix leaks pointed out by
Paolo Borelli. #351500

ChangeLog
libsoup/soup-server.c

index 3c7edeb..16cf53d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-11-03  Dan Winship  <danw@novell.com>
 
+       * 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.
 
index 4c26830..90357c9 100644 (file)
@@ -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);