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

Commit 08d7766

Browse files
committed
[[ Bug 11920 ]] Fixed memory leak in dilateXY.
1 parent 24ab03b commit 08d7766

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

docs/notes/bugfix-11920.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Memory leak in bitmap effects with spread of non-zero radius (e.g. spread 100%, radius 1; spread 50%, radius 2).
2+

libgraphics/src/spread.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ void dilateDistanceXY(const uint8_t *src, uint8_t *dst, int xradius, int yradius
353353
}
354354
}
355355

356+
free(buffer);
357+
356358
r_new_width = new_width;
357359
r_new_height = new_height;
358360
}

0 commit comments

Comments
 (0)