[cairo-bugs] [Bug 67171] New: Memory Leak in win32-display-surface

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 22 05:43:40 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=67171

          Priority: medium
            Bug ID: 67171
          Assignee: cairo-bugs at cairographics.org
           Summary: Memory Leak in win32-display-surface
        QA Contact: cairo-bugs at cairographics.org
          Severity: major
    Classification: Unclassified
                OS: Windows (All)
          Reporter: ilja.maier at gmail.com
          Hardware: x86 (IA32)
            Status: NEW
           Version: 1.12.14
         Component: win32 backend
           Product: cairo

cairo_surface_t *
cairo_win32_surface_create (HDC hdc)
{ ...
device = _cairo_win32_device_get ();
--> call device malloc
...
}

static void
_cairo_win32_device_destroy (void *device)
{
    free (device);
}
in cairo-win32-device.c will never called, due to ref counter.


Output window in VC2010:

Dumping objects ->
win32/cairo-win32-device.c(154) : {197} normal block at 0x00857F40, 72 bytes
long.
 Data: <                > 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
Object dump complete.
Detected memory leaks!

72 bytes is the size of device structure.

With best regards

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20130722/d9f4f705/attachment.html>


More information about the cairo-bugs mailing list