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
In the algorithm.c file, fill_chunkmap leaves 3 chunkmaps un-free-d.
fill_chunkmap is given an input chunkmap as shown void fill_chunkmap(chunkmap* map, vectorize_options* options) {
and then creates 3 more (such that each quadrant has it's own chunkmap it can write to without requiring a mutex).
This is shown here:
However the 3 newly created chunkmaps are never freed.
This doesn't matter for chunkshapes, as the 3 chunkmaps' chunkshapes are appended onto the input chunkmap, however the pixelchunks are not moved to the input chunkmap, which leaves the equivalent of 3 images worth of data leaking every call.
However again, simpling freeing these 3 maps with free_chunkmap would cause the shapes that used to be in the 3 chunkmaps to point to now freed pixelchunks, thereby causing access violations in the next steps of vectorization.
The text was updated successfully, but these errors were encountered:
In the algorithm.c file, fill_chunkmap leaves 3 chunkmaps un-free-d.
fill_chunkmap is given an input chunkmap as shown
void fill_chunkmap(chunkmap* map, vectorize_options* options) {
and then creates 3 more (such that each quadrant has it's own chunkmap it can write to without requiring a mutex).
This is shown here:
However the 3 newly created chunkmaps are never freed.
This doesn't matter for chunkshapes, as the 3 chunkmaps' chunkshapes are appended onto the input chunkmap, however the pixelchunks are not moved to the input chunkmap, which leaves the equivalent of 3 images worth of data leaking every call.
However again, simpling freeing these 3 maps with free_chunkmap would cause the shapes that used to be in the 3 chunkmaps to point to now freed pixelchunks, thereby causing access violations in the next steps of vectorization.
The text was updated successfully, but these errors were encountered: