> I think I have a 4th thing to raise: not very clear about the
> life-cycle of rec_surface - I think there is a possibility of
> leaking them if preser_slot() is called with cached multiple times.
> (I sort of notice these non-pairing create()/destroy() as pycairo
> etc don't have explicit destroy() methods). There is an extra
> destroy() in render(), but there probably should be a destroy() just
> before create in preset_slot() too to clear the previous
> rec_surface() if one blindly creates()?
My knowledge of Cairo is essentially zero. Moazin, what do you think?
Werner