diff options
author | Nicolas Pena <npm@chromium.org> | 2017-08-10 16:36:56 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-10 20:54:00 +0000 |
commit | f7520395821090b36a5ad8c658a844c3342dbf66 (patch) | |
tree | abe5505e60a57479593d6c39790fe214c23f9fef /third_party/lcms2-2.6/0005-memory-leak-AllocEmptyTransform.patch | |
parent | a12812924fc844823025fa383cc3ec8c1d1e2d4f (diff) | |
download | pdfium-f7520395821090b36a5ad8c658a844c3342dbf66.tar.xz |
LCMS: rename folder
Change-Id: I5f240cb0779648dc5427fecb5561086e7c0fb16a
Reviewed-on: https://pdfium-review.googlesource.com/10650
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'third_party/lcms2-2.6/0005-memory-leak-AllocEmptyTransform.patch')
-rw-r--r-- | third_party/lcms2-2.6/0005-memory-leak-AllocEmptyTransform.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/third_party/lcms2-2.6/0005-memory-leak-AllocEmptyTransform.patch b/third_party/lcms2-2.6/0005-memory-leak-AllocEmptyTransform.patch deleted file mode 100644 index a85a9682bd..0000000000 --- a/third_party/lcms2-2.6/0005-memory-leak-AllocEmptyTransform.patch +++ /dev/null @@ -1,34 +0,0 @@ -diff --git a/third_party/lcms2-2.6/src/cmsxform.c b/third_party/lcms2-2.6/src/cmsxform.c -index eddb9bd..6466d27 100644 ---- a/third_party/lcms2-2.6/src/cmsxform.c -+++ b/third_party/lcms2-2.6/src/cmsxform.c -@@ -593,7 +593,10 @@ _cmsTRANSFORM* AllocEmptyTransform(cmsContext ContextID, cmsPipeline* lut, - - // Allocate needed memory - _cmsTRANSFORM* p = (_cmsTRANSFORM*) _cmsMallocZero(ContextID, sizeof(_cmsTRANSFORM)); -- if (!p) return NULL; -+ if (!p) { -+ cmsPipelineFree(lut); -+ return NULL; -+ } - - // Store the proposed pipeline - p ->Lut = lut; -@@ -643,7 +646,7 @@ _cmsTRANSFORM* AllocEmptyTransform(cmsContext ContextID, cmsPipeline* lut, - if (p ->FromInputFloat == NULL || p ->ToOutputFloat == NULL) { - - cmsSignalError(ContextID, cmsERROR_UNKNOWN_EXTENSION, "Unsupported raster format"); -- _cmsFree(ContextID, p); -+ cmsDeleteTransform(p); - return NULL; - } - -@@ -673,7 +676,7 @@ _cmsTRANSFORM* AllocEmptyTransform(cmsContext ContextID, cmsPipeline* lut, - if (p ->FromInput == NULL || p ->ToOutput == NULL) { - - cmsSignalError(ContextID, cmsERROR_UNKNOWN_EXTENSION, "Unsupported raster format"); -- _cmsFree(ContextID, p); -+ cmsDeleteTransform(p); - return NULL; - } - |