Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 76397c1

Browse files
committed
[CID 16272] MCGPathAddPolygon(): Free uninitialised pointer.
1 parent e5f7f6a commit 76397c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libgraphics/src/path.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ void MCGPathAddPolygon(MCGPathRef self, const MCGPoint *p_points, uindex_t p_ari
449449
if (t_success)
450450
t_success = self -> is_mutable;
451451

452-
SkPoint *t_points;
452+
SkPoint *t_points = NULL;
453453
if (t_success)
454454
t_success = MCMemoryNewArray(p_arity, t_points);
455455

0 commit comments

Comments
 (0)