From c0b89ac5bfb90835ef01573267020e42d4fe070c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 23 Aug 2015 12:17:05 +0200 Subject: Imported Upstream version 1.8.0 --- icc/iccstd.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) mode change 100644 => 100755 icc/iccstd.c (limited to 'icc/iccstd.c') diff --git a/icc/iccstd.c b/icc/iccstd.c old mode 100644 new mode 100755 index 3f7966e..1cb63eb --- a/icc/iccstd.c +++ b/icc/iccstd.c @@ -440,5 +440,24 @@ icc *new_icc(void) { return p; } +/* ------------------------------------------------- */ + +/* Create an icmMD5 with the std allocator */ +icmMD5 *new_icmMD5(void) { + icmMD5 *p; + icmAlloc *al; /* memory allocator */ + + if ((al = new_icmAllocStd()) == NULL) + return NULL; + + if ((p = new_icmMD5_a(al)) == NULL) { + al->del(al); + return NULL; + } + + p->del_al = 1; /* Get md5->del to cleanup allocator */ + return p; +} + #endif /* defined(SEPARATE_STD) || defined(COMBINED_STD) */ -- cgit v1.2.3