Skip to content

Commit

Permalink
Fixes #64
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Mar 12, 2015
1 parent 8a3aed6 commit 9ce9764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/abeautifulsite/SimpleImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function __construct($filename = null, $width = null, $height = null, $color = n
*
*/
function __destruct() {
if ($this->image) {
if( get_resource_type($this->image) === 'gd' ) {
imagedestroy($this->image);
}
}
Expand Down

0 comments on commit 9ce9764

Please sign in to comment.