HEIF loader: Avoid memory leak when module is loaded more than once

Memory leak can be reproduced by running valgrind on test_load (which
calls imlib_flush_loaders()).
This commit is contained in:
Kim Woelders 2022-01-28 06:57:50 +01:00
parent 91a2ab9b14
commit 3157181bc3
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ gif_la_LIBTOOLFLAGS = --tag=disable-static
heif_la_SOURCES = loader_heif.c
heif_la_CPPFLAGS = $(HEIF_CFLAGS) $(AM_CPPFLAGS)
heif_la_LDFLAGS = -module -avoid-version
heif_la_LDFLAGS = -module -avoid-version -Wl,-z,nodelete
heif_la_LIBADD = $(HEIF_LIBS) $(top_builddir)/src/lib/libImlib2.la
heif_la_LIBTOOLFLAGS = --tag=disable-static