Memory leak warnings associated with ViewBox
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Undecided
|
Unassigned |
Bug Description
The introduction of the "ViewBox" function is producing "memory possibly lost" warnings when testing emf and wmf files in valgrind. In previous versions the end of EMf::open in emf-inout.cpp was just:
d.tri = trinfo_
return doc;
}
Now there is a ~25 line block between those two lines where a bunch of ViewBox and doc actions are performed. In that section, these lines leak:
That is, roughly every 3rd line in this section of code. The memory lost (maybe) is small, I think 16 bytes in each case.
There is also an ensureUpToDate() call in Emf::print_