Bug 19208

Summary: src/cairo-os2-surface.c:791: Memory leak: local_os2_surface
Product: cairo Reporter: dvice_null
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.9.1   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description dvice_null 2008-12-20 11:07:14 UTC
This bug was found from the latest git version. 

In file src/cairo-os2-surface.c:79: 
Variable local_os2_surface leaks memory when this "if" is executed:

    if (rc != NO_ERROR) {
        /* Could not create mutex semaphore! */
	return _cairo_surface_create_in_error (_cairo_error (CAIRO_STATUS_NO_MEMORY));
    }

This bug was found using cppcheck: http://cppcheck.wiki.sourceforge.net/
Comment 1 Chris Wilson 2008-12-20 11:20:58 UTC
Fixed in local tree.

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.