Free up memory by using imagedestroy() in wp_create_thumbnail()
|Reported by:||Viper007Bond||Owned by:|
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?