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