Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add copy control and in particular, destructor to the macro context
The macro contexts being static structs, they get their destructor automatically called at program end. Which counter-intuitively *causes* a leak if macros are stored in an STL container and rpmFreeMacros() isn't called, because then the container clears itself and the macros are left dangling, whereas without the destructor they are still reachable. freeMacros() obviously wants to be a member function but trying to keep things in the struct land for now. Doesn't really change anything as of now, but this is needed for moving the macro storage to C++ container.
- Loading branch information