Esme Povirk (@madewokherd) commented about dlls/gdiplus/gdiplus.c:
return TRUE;
}
+BOOL lengthen_path_strict(GpPath *path, INT len) +{
- /* Strictly allocate the requested memory size */
- /* Used only on fresh paths */
- path->pathdata.Points = calloc(len, sizeof(PointF));
- path->pathdata.Types = calloc(1, len);
- if (!path->pathdata.Points || !path->pathdata.Types)
- {
free(path->pathdata.Points);
free(path->pathdata.Types);
free(path);
If this can free the path as a side-effect, it should also create it.