vector push_back memory leak code example

vector push_back memory leak

1

1 Example

0
//adds a child node
{
    node* child = new node("blah","blah","blah");
    child->Set_Parent(this);
    children.push_back(std::unique_ptr<node>(child));
}

Other Code Examples