From 4b4a07e6eb5e04f59e0901bcea287bea655b6e00 Mon Sep 17 00:00:00 2001 From: cristy Date: Tue, 22 Jan 2013 17:07:56 +0000 Subject: [PATCH] --- MagickCore/distribute-cache.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/MagickCore/distribute-cache.c b/MagickCore/distribute-cache.c index b4f2c9ed8..c9773f84a 100644 --- a/MagickCore/distribute-cache.c +++ b/MagickCore/distribute-cache.c @@ -60,6 +60,7 @@ #include "MagickCore/exception-private.h" #include "MagickCore/geometry.h" #include "MagickCore/image.h" +#include "MagickCore/list.h" #include "MagickCore/locale_.h" #include "MagickCore/memory_.h" #include "MagickCore/policy.h" @@ -584,6 +585,11 @@ static MagickBooleanType ReadDistributeCachePixels(SplayTreeInfo *registry, return(MagickTrue); } +static void *RelinquishImageRegistry(void *image) +{ + return((void *) DestroyImageList((Image *) image)); +} + static MagickBooleanType WriteDistributeCacheMetacontent( SplayTreeInfo *registry,int file,const MagickSizeType session_key, ExceptionInfo *exception) @@ -751,7 +757,7 @@ static void *DistributePixelCacheClient(void *socket) random_info=DestroyRandomInfo(random_info); exception=AcquireExceptionInfo(); registry=NewSplayTree((int (*)(const void *,const void *)) NULL, - (void *(*)(void *)) NULL,(void *(*)(void *)) NULL); + (void *(*)(void *)) NULL,RelinquishImageRegistry); client_socket=(*(int *) socket); count=dpc_send(client_socket,DPCSessionKeyLength,GetStringInfoDatum(secret)); secret=DestroyStringInfo(secret); -- 2.50.1