Changeset View
Changeset View
Standalone View
Standalone View
lib/cms/cmsprofile.cpp
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Line(s) | 73 | { | |||
---|---|---|---|---|---|
93 | uchar* profile_data; | 93 | uchar* profile_data; | ||
94 | uint profile_len; | 94 | uint profile_len; | ||
95 | if (read_icc_profile(&srcinfo, &profile_data, &profile_len)) { | 95 | if (read_icc_profile(&srcinfo, &profile_data, &profile_len)) { | ||
96 | LOG("Found a profile, length:" << profile_len); | 96 | LOG("Found a profile, length:" << profile_len); | ||
97 | profile = cmsOpenProfileFromMem(profile_data, profile_len); | 97 | profile = cmsOpenProfileFromMem(profile_data, profile_len); | ||
98 | } | 98 | } | ||
99 | 99 | | |||
100 | jpeg_destroy_decompress(&srcinfo); | 100 | jpeg_destroy_decompress(&srcinfo); | ||
101 | free(profile_data); | ||||
101 | 102 | | |||
102 | return profile; | 103 | return profile; | ||
103 | } | 104 | } | ||
104 | 105 | | |||
105 | //- Profile class -------------------------------------------------------------- | 106 | //- Profile class -------------------------------------------------------------- | ||
106 | struct ProfilePrivate | 107 | struct ProfilePrivate | ||
107 | { | 108 | { | ||
108 | cmsHPROFILE mProfile; | 109 | cmsHPROFILE mProfile; | ||
▲ Show 20 Lines • Show All 151 Lines • Show Last 20 Lines |