summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2015-11-20 18:42:44 +0100
committerDebarshi Ray <debarshir@gnome.org>2015-11-23 11:42:14 +0100
commitc63954edacf256d79188fdc2977d2072a90c54b9 (patch)
tree988e09bf3d9d6e6271aa250476c06fc98201c5c0
parent0664fcc642522346d28ce68c79a9ea854ed41e16 (diff)
downloadgnome-control-center-c63954edacf256d79188fdc2977d2072a90c54b9.tar.gz
region: Silence a CRITICAL
Fall out from abb0592866515ac43ed1ac3c9ecc0b229960011f https://bugzilla.gnome.org/show_bug.cgi?id=758417
-rw-r--r--panels/region/cc-region-panel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/panels/region/cc-region-panel.c b/panels/region/cc-region-panel.c
index 0955dd730..b71ac0d83 100644
--- a/panels/region/cc-region-panel.c
+++ b/panels/region/cc-region-panel.c
@@ -162,7 +162,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);
}