[gnome-control-center/gnome-3-10] color: Fix a crash if the user closes the window after calibrating



commit 28da1233579eee391f5db6565537fef82bb3e76c
Author: Richard Hughes <richard hughsie com>
Date:   Thu Dec 12 13:45:54 2013 +0000

    color: Fix a crash if the user closes the window after calibrating
    
    The assistant_calib is set from gtk_builder_get_object() and so should not be
    destroyed manually.

 panels/color/cc-color-panel.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index 590973d..90b40c8 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -2104,7 +2104,6 @@ cc_color_panel_dispose (GObject *object)
   g_clear_object (&priv->list_box_size);
   g_clear_pointer (&priv->sensors, g_ptr_array_unref);
   g_clear_pointer (&priv->list_box_filter, g_free);
-  g_clear_pointer (&priv->assistant_calib, gtk_widget_destroy);
   g_clear_pointer (&priv->dialog_assign, gtk_widget_destroy);
 
   G_OBJECT_CLASS (cc_color_panel_parent_class)->dispose (object);


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