Fix double retain of child trees
This commit is contained in:
parent
5f27550a7a
commit
0cf59913ae
3 changed files with 18 additions and 4 deletions
|
|
@ -320,7 +320,10 @@ describe("Stack", [&]() {
|
|||
|
||||
describe("when the first head is only one node deep", [&]() {
|
||||
it("creates a node with one null successor and one non-null successor", [&]() {
|
||||
ts_tree_retain(trees[2]);
|
||||
ts_tree_retain(trees[3]);
|
||||
TSTree *parent = ts_tree_make_node(5, 2, tree_array({ trees[2], trees[3] }), metadata);
|
||||
|
||||
tree_selection_spy.tree_to_return = parent;
|
||||
tree_selection_spy.call_count = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue