This commit is contained in:
Cristy
2018-01-28 11:09:02 -05:00
parent baebccce9c
commit 0626b1628c
-6
View File
@@ -4877,8 +4877,6 @@ void Magick::Image::write(Blob *blob_)
data=ImagesToBlob(constImageInfo(),image(),&length,exceptionInfo);
if (length > 0)
blob_->updateNoCopy(data,length,Blob::MallocAllocator);
if (data != NULL)
data=RelinquishMagickMemory(data);
ThrowImageException;
}
@@ -4896,8 +4894,6 @@ void Magick::Image::write(Blob *blob_,const std::string &magick_)
data=ImagesToBlob(constImageInfo(),image(),&length,exceptionInfo);
if (length > 0)
blob_->updateNoCopy(data,length,Blob::MallocAllocator);
if (data != NULL)
data=RelinquishMagickMemory(data);
ThrowImageException;
}
@@ -4917,8 +4913,6 @@ void Magick::Image::write(Blob *blob_,const std::string &magick_,
data=ImagesToBlob(constImageInfo(),image(),&length,exceptionInfo);
if (length > 0)
blob_->updateNoCopy(data,length,Blob::MallocAllocator);
if (data != NULL)
data=RelinquishMagickMemory(data);
ThrowImageException;
}