diff options
Diffstat (limited to 'src/cmsgamma.c')
-rw-r--r-- | src/cmsgamma.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmsgamma.c b/src/cmsgamma.c index 1358252..b538b07 100644 --- a/src/cmsgamma.c +++ b/src/cmsgamma.c @@ -300,7 +300,8 @@ cmsToneCurve* AllocateToneCurveStruct(cmsContext ContextID, cmsUInt32Number nEnt return p; Error: - if (p -> Segments) _cmsFree(ContextID, p ->Segments); + if (p -> SegInterp) _cmsFree(ContextID, p -> SegInterp); + if (p -> Segments) _cmsFree(ContextID, p -> Segments); if (p -> Evals) _cmsFree(ContextID, p -> Evals); if (p ->Table16) _cmsFree(ContextID, p ->Table16); _cmsFree(ContextID, p); |