Signed-off-by: Matteo Bruni <mbruni at codeweavers.com> I'm not too happy by the HeapAlloc() / HeapFree() calls for each (inner) node but avoiding that is a bit cumbersome. I guess this is fine for now and we'll reevaluate if, at some point, we find this to be a performance problem.