Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion fpdf/fpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,6 @@ protected function _parsegif($file)
ob_start();
imagepng($im);
$data = ob_get_clean();
imagedestroy($im);
$f = fopen('php://temp','rb+');
if(!$f)
$this->Error('Unable to create memory stream');
Expand Down
1 change: 0 additions & 1 deletion scripts/PDFMemImage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ imagefilledrectangle($im, 80, 80, 110, 148, $color2);
imagefilledrectangle($im, 130, 40, 160, 148, $color3);
// Output it
$pdf->GDImage($im, 120, 25, 40);
imagedestroy($im);

$pdf->Output('F', __DIR__ . '/example.pdf');
```
Expand Down
1 change: 0 additions & 1 deletion scripts/PDFMemImage/ex.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,5 @@
imagefilledrectangle($im, 130, 40, 160, 148, $color3);
// Output it
$pdf->GDImage($im, 120, 25, 40);
imagedestroy($im);

$pdf->Output('F', __DIR__ . '/example.pdf');
1 change: 0 additions & 1 deletion scripts/QRcode/QRcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ public function displayPNG($w=100, $background=array(255,255,255), $color=array(
header("Content-type: image/png");
imagepng($im);
}
imagedestroy($im);
return true;
}

Expand Down
1 change: 0 additions & 1 deletion tests/Scripts/PDFMemImageTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public function testPDFMemImageTrait () {
imagefilledrectangle($im, 80, 80, 110, 148, $color2);
imagefilledrectangle($im, 130, 40, 160, 148, $color3);
$pdf->GDImage($im, 120, 25, 40);
imagedestroy($im);

$this->assertFileCanBeCreated($pdf);

Expand Down
1 change: 0 additions & 1 deletion tests/test.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@
imagefilledrectangle($im, 80, 80, 110, 148, $color2);
imagefilledrectangle($im, 130, 40, 160, 148, $color3);
$pdf->GDImage($im, 120, 25, 40);
imagedestroy($im);

//PDFDrawTrait
$pdf->SetFont('arial', '', 10);
Expand Down
Loading