[gnome-power-manager] Remove small memory leak spotted using clang



commit 7aebce8a5350278653368da5325b2a1eb100c72c
Author: Richard Hughes <richard hughsie com>
Date:   Mon Sep 7 09:18:17 2009 +0100

    Remove small memory leak spotted using clang

 src/gpm-screensaver.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gpm-screensaver.c b/src/gpm-screensaver.c
index 9c9e3ae..773c2f7 100644
--- a/src/gpm-screensaver.c
+++ b/src/gpm-screensaver.c
@@ -414,15 +414,15 @@ proxy_status_cb (DBusGProxy     *proxy,
 static void
 gpm_screensaver_init (GpmScreensaver *screensaver)
 {
-	DBusGProxy *proxy;
-	DBusGConnection *connection;
+//	DBusGProxy *proxy;
+//	DBusGConnection *connection;
 
 	screensaver->priv = GPM_SCREENSAVER_GET_PRIVATE (screensaver);
 
 	screensaver->priv->gproxy = egg_dbus_proxy_new ();
-	connection = dbus_g_bus_get (DBUS_BUS_SESSION, NULL);
-	proxy = egg_dbus_proxy_assign (screensaver->priv->gproxy, connection, GS_LISTENER_SERVICE,
-				       GS_LISTENER_PATH, GS_LISTENER_INTERFACE);
+//	connection = dbus_g_bus_get (DBUS_BUS_SESSION, NULL);
+//	proxy = egg_dbus_proxy_assign (screensaver->priv->gproxy, connection, GS_LISTENER_SERVICE,
+//				       GS_LISTENER_PATH, GS_LISTENER_INTERFACE);
 
 	g_signal_connect (screensaver->priv->gproxy, "proxy-status",
 			  G_CALLBACK (proxy_status_cb),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]