[cairo] [PATCH] fix bugs 15797 (1.8) and 18632 (master)

Jeff Muizelaar jeff at infidigm.net
Tue Dec 9 12:06:50 PST 2008


On Tue, Dec 09, 2008 at 02:59:48PM -0500, Jeff Muizelaar wrote:
> On Tue, Dec 09, 2008 at 03:45:32PM +0100, Paolo Bonzini wrote:
> > The fixes are in my repository at
> > http://www.inf.unisi.ch/~bonzini/webdav/cairo.git in branches
> > fix-15797-1.8 and fix-18632 (no test case: the bug basically makes the
> > Quartz backend unusable with gradients).
> 
> The fix should also remove the cairo_pattern_reference in CreateRepeatingGradientFunction correct?

Also, I'm a little frightened that keeping an implicit reference around
will make it easy unintentionally reference a freed area of memory. It
may be better to just make a copy of it. Aside: If allocation/free overhead is
dominating, an object pool might be a better solution.

-Jeff


More information about the cairo mailing list