imagedestroy() is called only if the ressource still exists

----------------------------------------------------------------------
This commit is contained in:
Jonathan Ernst
2005-01-14 05:37:07 +00:00
committed by WineHQ
parent caf91fded2
commit e0da13cc44

View File

@@ -109,5 +109,5 @@ if($type == "jpeg")
// Clear the memory
imagedestroy($im);
imagedestroy($sim);
if(is_resource($sim))imagedestroy($sim);
?>