diff options
Diffstat (limited to 'gs/base/gxidata.c')
-rw-r--r-- | gs/base/gxidata.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gs/base/gxidata.c b/gs/base/gxidata.c index d18a1e09a..86f15ee93 100644 --- a/gs/base/gxidata.c +++ b/gs/base/gxidata.c @@ -19,6 +19,7 @@ #include "gxdevice.h" #include "gxcpath.h" #include "gximage.h" +#include "gsicccache.h" /* Forward declarations */ static void update_strip(gx_image_enum *penum); @@ -462,6 +463,9 @@ gx_image1_end_image(gx_image_enum_common_t * info, bool draw_last) (*scaler->template->release) ((stream_state *) scaler); gs_free_object(mem, scaler, "image scaler state"); } + if (penum->icc_link != NULL) { + gsicc_release_link(penum->icc_link); + } gs_free_object(mem, penum->line, "image line"); gs_free_object(mem, penum->buffer, "image buffer"); gx_image_free_enum(&info); |