Increment tree refcount.

This commit is contained in:
Danila Fedorin 2018-08-11 21:19:02 -07:00
parent cf57c4a29a
commit 3fc7f46680

View File

@ -15,6 +15,9 @@ void libab_behavior_init_tree(libab_behavior* behavior, libab_tree* tree) {
void libab_behavior_copy(libab_behavior* behavior, libab_behavior* into) {
into->variant = behavior->variant;
into->data_u = behavior->data_u;
if(into->variant == BIMPL_TREE) {
into->data_u.tree->int_value++;
}
}
void libab_behavior_free(libab_behavior* behavior) {