gvFreeLayout leakage

I think gvFreeLayout doesn't delete bb attribute on root graph, or maybe xdot rendering keeps duplicating them.

Dumping xdot _draw_ attribute from root Agraph_t* I get

(first call)

0xdc7200 _draw_ c 7 -#ffffff C 7 -#ffffff P 4 0 0 0 140 142 140 142 0
...

(second call)
0xdc7200 _draw_ c 7 -#ffffff C 7 -#ffffff P 4 0 0 0 140 142 140 142 0 c 7 -#ffffff C 7 -#ffffff P 4 0 0 0 140 142 140 142 0
...

(third call)
0xdc7200 _draw_ c 7 -#ffffff C 7 -#ffffff P 4 0 0 0 140 142 140 142 0 c 7 -#ffffff C 7 -#ffffff P 4 0 0 0 140 142 140 142 0 c 7 -#ffffff C 7 -#ffffff P 4 0 0 0 140 142 140 142 0

i.e. the very same box (actually invisible, given fill and border colors) is duplicated each time.

This happens only on root, not subgraphs (I tested only clusters...), albeit I actually call gvFreeLayout before repeated gvLayout,gvRender.
I'm unable to delete bb attribute from root, then I have a workaround, but I would prefer to get rid this memory overhead.

TIA Carlo

See

Recent comments