data=ImagesToBlob(constImageInfo(),image(),&length,exceptionInfo);
if (length > 0)
blob_->updateNoCopy(data,length,Blob::MallocAllocator);
+ if (data != NULL)
+ data=RelinquishMagickMemory(data);
ThrowImageException;
}
data=ImagesToBlob(constImageInfo(),image(),&length,exceptionInfo);
if (length > 0)
blob_->updateNoCopy(data,length,Blob::MallocAllocator);
+ if (data != NULL)
+ data=RelinquishMagickMemory(data);
ThrowImageException;
}
data=ImagesToBlob(constImageInfo(),image(),&length,exceptionInfo);
if (length > 0)
blob_->updateNoCopy(data,length,Blob::MallocAllocator);
+ if (data != NULL)
+ data=RelinquishMagickMemory(data);
ThrowImageException;
}