[gnome-settings-daemon] color: Fix a bug where we were leaking the result of the async function



commit 1ed5ebe44b9bba670b272450692a43ad3729a453
Author: Richard Hughes <richard hughsie com>
Date:   Fri Jun 10 13:53:03 2011 +0100

    color: Fix a bug where we were leaking the result of the async function

 plugins/color/gsd-color-manager.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index 4933b3e..3eb7da5 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -290,9 +290,9 @@ gcm_session_profile_connect_cb (GObject *object,
         GsdColorManagerDeviceHelper *helper = (GsdColorManagerDeviceHelper *) user_data;
         GsdColorManager *manager = GSD_COLOR_MANAGER (helper->manager);
 
-        ret = cd_profile_connect_sync (profile,
-                                       NULL,
-                                       &error);
+        ret = cd_profile_connect_finish (profile,
+                                         res,
+                                         &error);
         if (!ret) {
                 g_warning ("failed to connect to profile: %s",
                            error->message);



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