Bug 7766

Summary: cairo_pattern_t leaked from _cairo_surface_show_glyphs
Product: cairo Reporter: Chris Wilson <cpwilson>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: critical    
Priority: high    
Version: 1.2.1   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Chris Wilson 2006-08-04 04:02:23 UTC
Missing _cairo_pattern_fini...

diff --git a/src/cairo-surface.c b/src/cairo-surface.c
index fb25e07..c5a1310 100644
--- a/src/cairo-surface.c
+++ b/src/cairo-surface.c
@@ -1754,6 +1754,8 @@ FINISH:
     if (dev_scaled_font != scaled_font)
        cairo_scaled_font_destroy (dev_scaled_font);
 
+    _cairo_pattern_fini (&dev_source.base);
+
     return status;
 }
Comment 1 Carl Worth 2006-08-04 17:17:58 UTC
Thanks for the report and the fix!

This has now been pushed out:

http://gitweb.freedesktop.org/?p=cairo;a=commit;h=e2fddcccb43d06486d3680a19cfdd5a54963fcbd

-Carl

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.