Fix typo introduced in 0dd1706

master
Christoph M. Becker 2016-07-20 13:27:30 +02:00
parent 0dd1706c14
commit 8b7e76dd37
1 changed files with 1 additions and 1 deletions

View File

@ -1055,7 +1055,7 @@ gdImageScaleTwoPass(const gdImagePtr src, const unsigned int new_width,
scale_pass_res = _gdScalePass(tmp_im, src_height, dst, new_height, new_width, VERTICAL);
if (scale_pass_res != 1) {
gdImageDestroy(dst);
if (tmp != NULL && src != tmp_im) {
if (tmp_im != NULL && src != tmp_im) {
gdImageDestroy(tmp_im);
}
return NULL;