imagedestroy() is called only if the ressource still exists
----------------------------------------------------------------------
This commit is contained in:
@@ -109,5 +109,5 @@ if($type == "jpeg")
|
|||||||
|
|
||||||
// Clear the memory
|
// Clear the memory
|
||||||
imagedestroy($im);
|
imagedestroy($im);
|
||||||
imagedestroy($sim);
|
if(is_resource($sim))imagedestroy($sim);
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user