Issue #1723: gih file that crashes gimp-2.10.
commit47163717bafea299504e1126b995703b581d2aec
authorJehan <jehan@girinstud.io>
Wed, 27 Jun 2018 16:03:37 +0000 (27 18:03 +0200)
committerJehan <jehan@girinstud.io>
Wed, 27 Jun 2018 16:16:00 +0000 (27 18:16 +0200)
tree4458b47b6da6db54960e17395c9a24918438addb
parent6b71bf27c859c30aa25842139386b2d5772aa60d
Issue #1723: gih file that crashes gimp-2.10.

The flag `free_selection_string` is used to track an array of strings
with some of them being static and others allocated. This should have
been an array of boolean but we can't change it because it is public API
(though it should really not have been!).

So let's just allocate every string of the `selection` array instead,
which makes the boolean flag useless now.

(cherry picked from commit b585201e5e46a1117c3956d66371c803df85ab62)
app/core/gimpbrushpipe-load.c
libgimpbase/gimpparasiteio.c
libgimpbase/gimpparasiteio.h