Skip to content

win32: Do not use _cairo_malloc to allocate buffer for use with GetGlyphOutline

Luca Bacci requested to merge fix-issue-339 into master

GetGlyphOutline can validly return 0 buffer size, e.g. for space character. _cairo_malloc() checks for 0 size allocations and int those cases returns NULL. So we use plain malloc() for buffer in GetGlyphOutline.

Fixes issue #339

Merge request reports

Loading