Memory Leak in win32-display-surface
Submitted by googy303
Assigned to cairo-bugs mailing list
Description
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
Version: 1.12.16