aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Terry <mike@mterry.name>2011-03-23 09:15:08 -0400
committerMichael Terry <mike@mterry.name>2011-03-23 09:15:08 -0400
commit531bbc3ffff45f8ac6295d403161dbca53b7043c (patch)
tree96b9b10bf948f8e6aa7711451b01d3b88bd7342a /src
parent03660972bff4b77a8d6079e325b799e1a6e74d37 (diff)
downloadayatana-indicator-datetime-531bbc3ffff45f8ac6295d403161dbca53b7043c.tar.gz
ayatana-indicator-datetime-531bbc3ffff45f8ac6295d403161dbca53b7043c.tar.bz2
ayatana-indicator-datetime-531bbc3ffff45f8ac6295d403161dbca53b7043c.zip
one more free
Diffstat (limited to 'src')
-rw-r--r--src/timezone-completion.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/timezone-completion.c b/src/timezone-completion.c
index 5a0e31b..183dfd5 100644
--- a/src/timezone-completion.c
+++ b/src/timezone-completion.c
@@ -98,8 +98,10 @@ json_parse_ready (GObject *object, GAsyncResult *res, gpointer user_data)
JsonReader * reader = json_reader_new (json_parser_get_root (JSON_PARSER (object)));
- if (!json_reader_is_array (reader))
+ if (!json_reader_is_array (reader)) {
+ g_object_unref (G_OBJECT (reader));
return;
+ }
gint i, count = json_reader_count_elements (reader);
for (i = 0; i < count; ++i) {