[cairo-bugs] [Bug 11059] New: Leak caused by quartz not implementing release_source_image

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu May 24 15:42:10 PDT 2007


http://bugs.freedesktop.org/show_bug.cgi?id=11059

           Summary: Leak caused by quartz not implementing
                    release_source_image
           Product: cairo
           Version: 1.4.7
          Platform: All
        OS/Version: Mac OS X (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: quartz backend
        AssignedTo: vladimir at pobox.com
        ReportedBy: Brian.Ewins at gmail.com
         QAContact: cairo-bugs at cairographics.org


Originally reported by Boris Zbarsky on the list:
"The image surface that _cairo_quartz_surface_acquire_source_image creates
never
seems to be released, probably because there is no release_source_image
callback
in the quartz code.

The attached patch fixes that problem, at least insofar as the image surface
itself is no longer leaking.  I'm not sure whether any other cleanup needs to
happen here."

To reproduce, change test/source-pattern.c to #include "cairo-quartz.h", then
replace the call to cairo_image_surface_create with a call to
cairo_quartz_surface_create. Wrap all the code of the test in while(1) and
monitor the memory of the process when you run the test.

Boris' patch is obviously correct, and applying it the leak disappears. Just
recording the issue here for the benefit of the log, I'll close the bug in a
moment or two.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the cairo-bugs mailing list