[cairo] [PATCH] Always call _cairo_region_get_boxes with an initialized 'boxes' pointer

Argiris Kirtzidis akyrtzi at gmail.com
Tue Dec 30 19:09:46 PST 2008


Hi all,

Code that calls _cairo_region_get_boxes will later call 
_cairo_region_boxes_fini to free the 'boxes' pointer;
here's a patch to initialize the pointer to NULL to avoid free'ing an 
uninitialized pointer.

-Argiris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: init-boxes.patch
Type: text/x-diff
Size: 1297 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20081230/331e63ac/attachment.patch 


More information about the cairo mailing list