Skip to content

Commit fd55f3f

Browse files
committed
Fix memory leak in libheif
1 parent 1a8317a commit fd55f3f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [3.15.6] - 2026-03-17
4+
### Fixed
5+
- Fix memory leak in libheif when saving HEIC/AVIF images with alpha channel.
6+
37
## [3.15.5] - 2026-03-13
48
### Changed
59
- Update GLib to 2.87.5.

build-deps.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ print_build_stage libheif $LIBHEIF_VERSION
312312
cd $DEPS_SRC/libheif
313313
# Ignore alpha in yuv2rgb and rgb2rgb if it has different BPP
314314
curl -Ls https://github.com/DarthSim/libheif/commit/d63ec62d93ab1420c8cf76378af2a806aeb5292d.patch | git apply
315+
# Fix memory leak in encoders
316+
# Remove when the fix is released
317+
curl -Ls https://github.com/DarthSim/libheif/commit/5d56b234d465358f0fcdfbac93835f1094dc13ae.patch | git apply
315318
mkdir _build
316319
cd _build
317320
CFLAGS="${CFLAGS} -O3" CXXFLAGS="${CXXFLAGS} -O3" \

0 commit comments

Comments
 (0)