We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f88b2ee commit 662659fCopy full SHA for 662659f
saxbospiral/render.c
@@ -77,6 +77,8 @@ render_spiral(spiral_t spiral) {
77
.x = bounds.items[1].x + normalisation_vector.x,
78
.y = bounds.items[1].y + normalisation_vector.y,
79
};
80
+ // free memory allocated for bounds.items, as we no longer need it
81
+ free(bounds.items);
82
// initialise output bitmap - image dimensions are twice the size + 1
83
bitmap_t output = {
84
.width = ((bottom_right.x + 1) * 2) + 1,
0 commit comments