Skip to content

Commit

Permalink
Merge commit 'pullrequests/tsnorri/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Oct 25, 2024
2 parents 397694e + c7dba4a commit 5135015
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Adapter/GD.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ public function __construct()
throw new \RuntimeException('You need to install GD PHP Extension to use this library');
}
}

public function __destruct()
{
if (null !== $this->resource)
imagedestroy($this->resource);
}

/**
* {@inheritdoc}
Expand Down

0 comments on commit 5135015

Please sign in to comment.