Re: [PATCH v8 0/6] MR3288: gdiplus: Clip polygons before drawing them
15 Dec
2023
15 Dec
'23
3:54 p.m.
Esme Povirk (@madewokherd) commented about dlls/gdiplus/graphicspath.c:
* pointer on success * NULL on allocation problems */ -static path_list_node_t* add_path_list_node(path_list_node_t *node, REAL x, REAL y, BOOL type) +static path_list_node_t* add_path_list_node(path_list_node_t **node, REAL x, REAL y, BOOL type) { path_list_node_t *new;
+ if (!*node) + { + *node = calloc(1, sizeof(path_list_node_t)); All fields are immediately initialized below, so I think it's fine to use `malloc`.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3288#note_56100
735
Age (days ago)
735
Last active (days ago)
0 comments
1 participants
participants (1)
-
Esme Povirk (@madewokherd)