1 |
diff -up ghostscript-9.08rc1/base/gsicc_manage.c.icc-missing-check ghostscript-9.08rc1/base/gsicc_manage.c |
diff -up ghostscript-9.12/base/gsicc_manage.c.icc-missing-check ghostscript-9.12/base/gsicc_manage.c |
2 |
--- ghostscript-9.08rc1/base/gsicc_manage.c.icc-missing-check 2013-08-09 14:12:18.000000000 +0100 |
--- ghostscript-9.12/base/gsicc_manage.c.icc-missing-check 2014-03-26 11:31:11.296570797 +0000 |
3 |
+++ ghostscript-9.08rc1/base/gsicc_manage.c 2013-08-09 16:54:11.167695694 +0100 |
+++ ghostscript-9.12/base/gsicc_manage.c 2014-03-26 11:32:10.384912584 +0000 |
4 |
@@ -599,6 +599,8 @@ gsicc_set_srcgtag_struct(gsicc_manager_t |
@@ -613,6 +613,8 @@ gsicc_set_srcgtag_struct(gsicc_manager_t |
5 |
icc_profile = |
icc_profile = |
6 |
gsicc_profile_new(str, mem, curr_ptr, strlen(curr_ptr)); |
gsicc_profile_new(str, mem, curr_ptr, strlen(curr_ptr)); |
7 |
code = sfclose(str); |
code = sfclose(str); |
9 |
+ if (str != NULL && icc_profile != NULL) { |
+ if (str != NULL && icc_profile != NULL) { |
10 |
gsicc_init_profile_info(icc_profile); |
gsicc_init_profile_info(icc_profile); |
11 |
cmm = gsCMM_DEFAULT; |
cmm = gsCMM_DEFAULT; |
12 |
/* Check if this object is a devicelink profile. |
/* Check if this object is a devicelink profile. |