From 6a2422fe75904e8072bdf48502d0245f89e1a0e2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 18 Jul 2011 18:37:12 +0400 Subject: [PATCH] Ref hash table at settings loading. --- src/settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings.c b/src/settings.c index 1eb5da2d6..59b2a9ea6 100644 --- a/src/settings.c +++ b/src/settings.c @@ -85,7 +85,7 @@ json_read_cb (memory_pool_t * pool, u_char * chunk, size_t len, struct map_cb_da if (data->cur_data == NULL) { jb = g_malloc (sizeof (struct json_buf)); - jb->table = ((struct json_buf *)data->prev_data)->table; + jb->table = g_hash_table_ref (((struct json_buf *)data->prev_data)->table); jb->buf = NULL; jb->pos = NULL; data->cur_data = jb; -- 2.39.5