[wp-trac] [WordPress Trac] #4709: Free up memory by using
imagedestroy() in wp_create_thumbnail()
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 7 10:08:05 GMT 2007
#4709: Free up memory by using imagedestroy() in wp_create_thumbnail()
--------------------------+-------------------------------------------------
Reporter: Viper007Bond | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.3 (trunk)
Component: Optimization | Version: 2.3
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
I noticed that `wp_create_thumbnail()` (and possibly other image handling
functions) doesn't make use of `imagedestroy()` to destroy the temporary
image that's in memory once it's done with it.
While this is automatically done when the PHP file is done running, I
think it'd be good to do it ourselves as soon as we're done with
`$thumbnail`, i.e. as soon as we save it.
Less memory usage == good, right? Or am I a noob and missing something?
--
Ticket URL: <http://trac.wordpress.org/ticket/4709>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list