aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-02-15 10:59:40 -0600
committerCharles Kerr <charles.kerr@canonical.com>2012-02-15 10:59:40 -0600
commit9756029c79b5bd640b071c19e26c5908ed0102df (patch)
tree0d00d0ecab3d0749640fdfee24f334ab730b6950
parent891f491abc15b0ff9a97559fec5ed0c3fc87c149 (diff)
parent4727ba29a8884048cb71107b8578efa05c2e70fc (diff)
downloadayatana-indicator-datetime-9756029c79b5bd640b071c19e26c5908ed0102df.tar.gz
ayatana-indicator-datetime-9756029c79b5bd640b071c19e26c5908ed0102df.tar.bz2
ayatana-indicator-datetime-9756029c79b5bd640b071c19e26c5908ed0102df.zip
lp:~charlesk/indicator-datetime/refix-844741
-rw-r--r--src/timezone-completion.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/timezone-completion.c b/src/timezone-completion.c
index f223bf4..a4d4fb5 100644
--- a/src/timezone-completion.c
+++ b/src/timezone-completion.c
@@ -311,7 +311,7 @@ get_locale (void)
return locale;
}
-static gchar *
+static const gchar *
get_version (void)
{
static gchar *version = NULL;
@@ -351,11 +351,10 @@ request_zones (TimezoneCompletion * completion)
priv->request_text = g_strdup (text);
gchar * escaped = g_uri_escape_string (text, NULL, FALSE);
- gchar * version = get_version ();
+ const gchar * version = get_version ();
gchar * locale = get_locale ();
gchar * url = g_strdup_printf (GEONAME_URL, escaped, version, locale);
g_free (locale);
- g_free (version);
g_free (escaped);
GFile * file = g_file_new_for_uri (url);