aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-02-15 00:43:52 -0600
committerCharles Kerr <charles.kerr@canonical.com>2012-02-15 00:43:52 -0600
commit4727ba29a8884048cb71107b8578efa05c2e70fc (patch)
tree33980877d01530a4bde9fbe4ad36ab37a1ac358c /src
parente89e4271e1c160036668e92f7106ec4c57994e07 (diff)
downloadayatana-indicator-datetime-4727ba29a8884048cb71107b8578efa05c2e70fc.tar.gz
ayatana-indicator-datetime-4727ba29a8884048cb71107b8578efa05c2e70fc.tar.bz2
ayatana-indicator-datetime-4727ba29a8884048cb71107b8578efa05c2e70fc.zip
re-fix bug #84471 for trunk
Diffstat (limited to 'src')
-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);