diff options
-rw-r--r-- | src/settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |