Skip to content

Commit

Permalink
fix for __destruct() on null|false image
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Oct 25, 2024
1 parent 594bdbe commit e04b687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Adapter/GD.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function __construct()

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

Expand Down

0 comments on commit e04b687

Please sign in to comment.