[gnome-control-center/gnome-3-16] region: Silence a CRITICAL



commit af581902841862cac8c88769469e59f1c790a05b
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Nov 20 18:42:44 2015 +0100

    region: Silence a CRITICAL
    
    Fall out from abb0592866515ac43ed1ac3c9ecc0b229960011f
    
    https://bugzilla.gnome.org/show_bug.cgi?id=758417

 panels/region/cc-region-panel.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/region/cc-region-panel.c b/panels/region/cc-region-panel.c
index 8436b68..6cd5b85 100644
--- a/panels/region/cc-region-panel.c
+++ b/panels/region/cc-region-panel.c
@@ -166,7 +166,8 @@ cc_region_panel_finalize (GObject *object)
         g_free (priv->system_region);
 
         chooser = g_object_get_data (G_OBJECT (self), "input-chooser");
-        gtk_widget_destroy (chooser);
+        if (chooser)
+                gtk_widget_destroy (chooser);
 
        G_OBJECT_CLASS (cc_region_panel_parent_class)->finalize (object);
 }


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