You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.
I think I found the solution. The problem is with the destructor for MeiElement. Instead of calling attributes.clear() I looped through the vector and delete each element, as you already do in ~MeiDocument(). (I don't know why it's not necessary to do the same for the children vector.) I changed the destructor to the following and I was able to compile the sample program above with no complaints from clang:
I am seeing a memory leak with the simplest example document:
test.cpp
:I compile with this command:
This is the output from
clang
about the memory leak:The text was updated successfully, but these errors were encountered: