I can create the layout just once and then use layout.context_changed() when the context changes, like for a window resize. This avoid the memory leak. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.cairographics.org/archives/cairo/attachments/20120111/e39b8c6f/attachment.htm>