[gnome-initial-setup] timezone: Fix a crasher
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] timezone: Fix a crasher
- Date: Thu, 31 Oct 2013 18:35:24 +0000 (UTC)
commit a48989c8fed80f3875d68eb7fd3285103b892a9c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Oct 31 14:25:17 2013 -0400
timezone: Fix a crasher
If we set_location of NULL.
.../pages/timezone/gis-timezone-page.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gnome-initial-setup/pages/timezone/gis-timezone-page.c
b/gnome-initial-setup/pages/timezone/gis-timezone-page.c
index d4fc0c2..cb87080 100644
--- a/gnome-initial-setup/pages/timezone/gis-timezone-page.c
+++ b/gnome-initial-setup/pages/timezone/gis-timezone-page.c
@@ -103,8 +103,7 @@ set_location (GisTimezonePage *page,
{
GisTimezonePagePrivate *priv = gis_timezone_page_get_instance_private (page);
- if (priv->current_location)
- gweather_location_unref (priv->current_location);
+ g_clear_pointer (&priv->current_location, gweather_location_unref);
cc_timezone_map_set_location (CC_TIMEZONE_MAP (priv->map), location);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]