In add_component_with_init_method_data(), an internal function called by
all the bt_graph_add_*_component*() functions, the function must freeze
the parameters value object (developer mode) in order to prevent further
changes of this object (and its children), since at this point the
object becomes shared with other users.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
*/
g_ptr_array_add(graph->components, component);
bt_component_set_graph(component, graph);
*/
g_ptr_array_add(graph->components, component);
bt_component_set_graph(component, graph);
+ bt_value_freeze(params);
if (init_method) {
BT_LOGD_STR("Calling user's initialization method.");
if (init_method) {
BT_LOGD_STR("Calling user's initialization method.");