From: Dan Winship Date: Wed, 3 Apr 2013 15:27:59 +0000 (-0400) Subject: soup-connection: fix SoupProxyResolverDefault breakage X-Git-Tag: 2.42.1~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b376dd82ad9beba54e85911a39f41ba8cea08498;p=platform%2Fupstream%2Flibsoup.git soup-connection: fix SoupProxyResolverDefault breakage It got broken at the last minute when adding SoupSession:proxy-resolver support. https://bugzilla.gnome.org/show_bug.cgi?id=697028 --- diff --git a/libsoup/soup-connection.c b/libsoup/soup-connection.c index bcc5af4..fbddfea 100644 --- a/libsoup/soup-connection.c +++ b/libsoup/soup-connection.c @@ -133,7 +133,8 @@ soup_connection_set_property (GObject *object, guint prop_id, priv->soup_proxy_resolver = g_object_ref (proxy_resolver); break; case PROP_G_PROXY_RESOLVER: - priv->g_proxy_resolver = g_value_dup_object (value); + if (g_value_get_object (value)) + priv->g_proxy_resolver = g_value_dup_object (value); break; case PROP_SSL: priv->ssl = g_value_get_boolean (value);