[gnome-color-manager] trivial: don't leak the cancellable



commit 9cc7bd68c1f51620e965e397114783a453b14ab8
Author: Richard Hughes <richard hughsie com>
Date:   Wed Oct 13 10:01:15 2010 +0100

    trivial: don't leak the cancellable

 src/cc-color-panel.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/cc-color-panel.c b/src/cc-color-panel.c
index dc46763..71638ee 100644
--- a/src/cc-color-panel.c
+++ b/src/cc-color-panel.c
@@ -2692,6 +2692,7 @@ cc_color_panel_finalize (GObject *object)
 	CcColorPanel *panel = CC_COLOR_PANEL (object);
 
 	g_cancellable_cancel (panel->priv->cancellable);
+	g_object_unref (panel->priv->cancellable);
 	if (panel->priv->current_device != NULL)
 		g_object_unref (panel->priv->current_device);
 	if (panel->priv->sensor_client != NULL)



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