Created attachment 16307 [details] test program The attached program renders the gradient correctly to frame.png if only one call to "render" is present in the main. If the second call is there, the saved frame.png is entirely green. The program works correctly with an image surface (try uncommenting this line: /* #undef CAIRO_HAS_QUARTZ_SURFACE */ to test).
The same bug applies to radial patterns, I tested using this call: cairo_pattern_t *gradient = cairo_pattern_create_radial (0.3, 0.3, 0.1, 0.5, 0.5, 0.5);
Not dependent on PR18632. This bug is a reference count unbalancing and is fixed in master (but the fix causes PR18632).
See http://permalink.gmane.org/gmane.comp.lib.cairo/15727 for analysis and patches.
fixed together with PR18632 (same fix applied to 1.8 and master)
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.