From b732f7f5113e978b01d7bf7581e66ce6956ba99a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Mon, 13 Jun 2011 19:17:27 +0200
Subject: Fixed compilation error.


diff --git a/Swiften/Network/UnixProxyProvider.cpp b/Swiften/Network/UnixProxyProvider.cpp
index 7790ad8..4ca9311 100644
--- a/Swiften/Network/UnixProxyProvider.cpp
+++ b/Swiften/Network/UnixProxyProvider.cpp
@@ -26,17 +26,19 @@ UnixProxyProvider::UnixProxyProvider() :
 }
 
 UnixProxyProvider::~UnixProxyProvider() {
+#if defined(HAVE_GCONF)
 	delete gconfProxyProvider;
+#endif
 }
 
 HostAddressPort UnixProxyProvider::getSOCKS5Proxy() const {
 	HostAddressPort proxy;
-	if (gconfProxyProvider) {
-		proxy = gconfProxyProvider.getSOCKS5Proxy();
-		if(proxy.isValid()) {
-			return proxy;
-		}
+#if defined(HAVE_GCONF)
+	proxy = gconfProxyProvider->getSOCKS5Proxy();
+	if(proxy.isValid()) {
+		return proxy;
 	}
+#endif
 	proxy = environmentProxyProvider.getSOCKS5Proxy();
 	if(proxy.isValid()) {
 		return proxy;
@@ -46,12 +48,12 @@ HostAddressPort UnixProxyProvider::getSOCKS5Proxy() const {
 
 HostAddressPort UnixProxyProvider::getHTTPConnectProxy() const {
 	HostAddressPort proxy;
-	if (gconfProxyProvider) {
-		proxy = gconfProxyProvider.getHTTPConnectProxy();
-		if(proxy.isValid()) {
-			return proxy;
-		}
+#if defined(HAVE_GCONF)
+	proxy = gconfProxyProvider->getHTTPConnectProxy();
+	if(proxy.isValid()) {
+		return proxy;
 	}
+#endif
 	proxy = environmentProxyProvider.getHTTPConnectProxy();
 	if(proxy.isValid()) {
 		return proxy;
-- 
cgit v0.10.2-6-g49f6