Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: third_party/lcms2-2.6/0007-memory-leak-OptimizeByResampling.patch

Issue 2359243003: Fix memory leaks in lcms (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 diff --git a/third_party/lcms2-2.6/src/cmsopt.c b/third_party/lcms2-2.6/src/cmso pt.c
2 index f885ef3..684910d 100644
3 --- a/third_party/lcms2-2.6/src/cmsopt.c
4 +++ b/third_party/lcms2-2.6/src/cmsopt.c
5 @@ -612,7 +612,7 @@ cmsBool OptimizeByResampling(cmsPipeline** Lut, cmsUInt32Num ber Intent, cmsUInt3
6
7 // Allocate the CLUT
8 CLUT = cmsStageAllocCLut16bit(Src ->ContextID, nGridPoints, Src ->InputChan nels, Src->OutputChannels, NULL);
9 - if (CLUT == NULL) return FALSE;
10 + if (CLUT == NULL) goto Error;
11
12 // Add the CLUT to the destination LUT
13 if (!cmsPipelineInsertStage(Dest, cmsAT_END, CLUT)) {
OLDNEW
« no previous file with comments | « third_party/lcms2-2.6/0006-memory-leak-Type_NamedColor_Read.patch ('k') | third_party/lcms2-2.6/README.pdfium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698