aboutsummaryrefslogtreecommitdiff
path: root/src/timezone-completion.c
diff options
context:
space:
mode:
authorMichael Terry <mike@mterry.name>2011-03-23 09:12:45 -0400
committerMichael Terry <mike@mterry.name>2011-03-23 09:12:45 -0400
commit03660972bff4b77a8d6079e325b799e1a6e74d37 (patch)
tree5367c68ca57ceb3bfedc65923909ac98c0f36629 /src/timezone-completion.c
parentff7b647f722a837545c605c196eb3c26e42fd405 (diff)
downloadayatana-indicator-datetime-03660972bff4b77a8d6079e325b799e1a6e74d37.tar.gz
ayatana-indicator-datetime-03660972bff4b77a8d6079e325b799e1a6e74d37.tar.bz2
ayatana-indicator-datetime-03660972bff4b77a8d6079e325b799e1a6e74d37.zip
free json memory and sink model ref
Diffstat (limited to 'src/timezone-completion.c')
-rw-r--r--src/timezone-completion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timezone-completion.c b/src/timezone-completion.c
index f570c33..5a0e31b 100644
--- a/src/timezone-completion.c
+++ b/src/timezone-completion.c
@@ -63,7 +63,7 @@ save_and_use_model (TimezoneCompletion * completion, GtkTreeModel * model)
{
TimezoneCompletionPrivate * priv = TIMEZONE_COMPLETION_GET_PRIVATE(completion);
- g_hash_table_insert (priv->request_table, g_strdup (priv->request_text), g_object_ref (model));
+ g_hash_table_insert (priv->request_table, g_strdup (priv->request_text), g_object_ref_sink (model));
gtk_entry_completion_set_model (GTK_ENTRY_COMPLETION (completion), model);
gtk_entry_completion_complete (GTK_ENTRY_COMPLETION (completion));
}
@@ -149,7 +149,7 @@ json_parse_ready (GObject *object, GAsyncResult *res, gpointer user_data)
}
save_and_use_model (completion, GTK_TREE_MODEL (store));
- g_object_unref (G_OBJECT (store));
+ g_object_unref (G_OBJECT (reader));
}
static void