Bug 7766 - cairo_pattern_t leaked from _cairo_surface_show_glyphs
Summary: cairo_pattern_t leaked from _cairo_surface_show_glyphs
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.2.1
Hardware: All All
: high critical
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-04 04:02 UTC by Chris Wilson
Modified: 2006-08-04 17:17 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.