Does it use a vector? It's a memory leak. #6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Basically, in all the places we use vectors, we never properly call delete on the objects when removing.
e.g.
panes.erase(std::remove(begin(), end(), focusedPane), end());Doesn't actually destroy the object, it only removes it from the stack. (Because it's a pointer object.)
memory leak.
Update:
only the Renderer does this now, because it doesn't delete the things when removing from queue.