summaryrefslogtreecommitdiff
path: root/src/analysis
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2021-01-01 23:20:42 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2021-01-01 23:20:42 (GMT)
commitdcd5e0b104143b110997029aa0728731f4087ad8 (patch)
tree141a79ade5eae6e469ba9e5255882039e9c29a3e /src/analysis
parent7b320516abf871eefe009ff6fe4fb86ed921fed9 (diff)
Managed GObject references each time a configuration parameter is accessed.
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/cattribs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/analysis/cattribs.c b/src/analysis/cattribs.c
index ebebb83..704e665 100644
--- a/src/analysis/cattribs.c
+++ b/src/analysis/cattribs.c
@@ -297,6 +297,8 @@ const char **g_content_attributes_get_keys(const GContentAttributes *attribs, si
result = NULL;
*count = 0;
+ g_generic_config_rlock(attribs->configs[0]);
+
list = g_generic_config_list_params(attribs->configs[0]);
for (iter = g_list_first(list); iter != NULL; iter = g_list_next(iter))
@@ -311,6 +313,8 @@ const char **g_content_attributes_get_keys(const GContentAttributes *attribs, si
}
+ g_generic_config_runlock(attribs->configs[0]);
+
return result;
}