src에 대한 imagedestory 코드 추가

This commit is contained in:
chicpro
2013-04-18 15:39:19 +09:00
parent 14777ea3f1
commit 07088f1c90

View File

@ -304,6 +304,7 @@ function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_h
imagejpeg($dst, $thumb_file, 90);
chmod($thumb_file, 0606); // 추후 삭제를 위하여 파일모드 변경
imagedestroy($src);
imagedestroy($dst);
return basename($thumb_file);