Gimp/plug-ins
Jehan 41035c7589 plug-ins: fix memory management and handle multi-file zip.
We should not call archive_entry_free() since man
archive_read_next_header explicitly says that the returned entry is an
internal object:

> This is a convenience wrapper around archive_read_next_header2() that
> reuses an internal struct archive_entry object for each request.

The only reason why it was not crashing is that we were not properly
freeing the archive itself so internal objects were hanging! The man
archive_read says:

> Once you have finished reading data from the archive, you should call
> archive_read_close() to close the archive, then call archive_read_free()
> to release all resources, including all memory allocated by the library.

Therefore this code add archive_read_free() at the end and removes
archive_entry_free().

Furthermore we now verify if the zip archive contains any other file.
Unlike all other compression formats we were supporting until now, zip
is a full multi-file container format and we are always only trying to
read the first file listed in the archive. This likely means that this
file was not meant to be opened this way. In any case, still try to load
the first file as an image, yet raise a warning about the existence of
more files in the archive.
2025-09-30 20:14:01 +02:00
..
common plug-ins: fix memory management and handle multi-file zip. 2025-09-30 20:14:01 +02:00
file-bmp build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
file-dds plug-ins/dds: fix #12790 for 32-bit 2025-06-20 10:29:43 -04:00
file-exr plug-ins: fix file-exr warning and a possible memory leak 2025-09-03 12:59:39 +00:00
file-faxg3 build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
file-fits plug-ins: Fix bug with RGB FITS export 2025-07-19 23:36:20 +00:00
file-fli build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
file-icns plug-ins: Fix ZDI-CAN-27684 2025-09-03 13:41:10 +00:00
file-ico build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
file-jpeg plug-ins: align with __attribute__ keyword. 2025-09-15 19:36:29 +02:00
file-psd plug-ins: Remove metadata on J2K and PSB export 2025-08-31 13:22:28 +00:00
file-raw build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
file-sgi build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
file-tiff plug-ins: fix overwriting sketchbook tiff group layer mode 2025-08-14 18:58:03 -04:00
file-webp build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
filter-browser plug-ins/filter-browser: Remove Pippins's copyright 2025-08-26 23:50:37 +00:00
flame build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
fractal-explorer build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
gfig build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
gimpressionist app, tools, plug-ins: more #pragma once, and formatting cleanup where 2025-08-13 01:48:40 +02:00
gradient-flare build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
help app, tools, plug-ins: more #pragma once, and formatting cleanup where 2025-08-13 01:48:40 +02:00
help-browser build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
ifs-compose build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
imagemap plug-in: Fix image-map map format type change 2025-07-12 13:26:10 +00:00
lighting build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
map-object Issue #14878: fix missing spin boxes in Map to Object plug-in 2025-09-16 10:37:02 +00:00
metadata plug-ins: Use GtkListBox in metadata viewer 2025-07-11 21:44:09 +00:00
pagecurl build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
print plug-ins: Allow for more specific print settings with portals 2025-08-30 15:41:49 +00:00
python python: Remove layer offsets on ORA export 2025-09-29 18:55:20 -03:00
screenshot Revert "plug-ins: Convert screenshot dropdowns to radios" 2025-06-13 16:50:12 +00:00
script-fu macos plugins: Improves dock icon flashing from #12150 2025-09-20 00:10:06 +01:00
selection-to-path build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
twain build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
generate_associations.py build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
generate_mime_ext.py meson, desktop, plug-ins: Generate MIMEtypes var dynamically 2025-06-13 13:47:19 -03:00
meson.build plug-ins: Add GEGL filter API browser 2025-08-03 21:38:28 +00:00