joomla/joomla-platform — pull request #1701 by dongilbert (2012-11-18 20:14:56+00:00)
Title: Adding destroy() method to JImage

Currently, there is no way to release memory associated with a `JImage::$handle` resource. When working with images, it's *normally* accomplished using `imagedestroy($handle)`, but since the resource is held within the JImage object instance, we don't have access to destroy it and free the memory. This fixes that by allowing you to explicitly destroy the image handle.