mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Added missing calls to imagedestroy() on examples
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@265560 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
288e57e4ff
commit
a4b47e97b3
3 changed files with 7 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<refentry xml:id="function.imagegrabscreen" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>imagegrabscreen</refname>
|
||||
|
@ -56,6 +56,7 @@
|
|||
<?php
|
||||
$im = imagegrabscreen();
|
||||
imagepng($im, "myscreenshot.png");
|
||||
imagedestroy($im);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<refentry xml:id="function.imagegrabwindow" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>imagegrabwindow</refname>
|
||||
|
@ -75,6 +75,7 @@ $browser->Visible = true;
|
|||
$im = imagegrabwindow($handle);
|
||||
$browser->Quit();
|
||||
imagepng($im, "iesnap.png");
|
||||
imagedestroy($im);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -96,6 +97,7 @@ while ($browser->Busy) {
|
|||
$im = imagegrabwindow($handle, 0);
|
||||
$browser->Quit();
|
||||
imagepng($im, "iesnap.png");
|
||||
imagedestroy($im);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<refentry xml:id="function.imagesettile" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>imagesettile</refname>
|
||||
|
@ -79,6 +79,7 @@ header('Content-Type: image/png');
|
|||
|
||||
imagepng($im);
|
||||
imagedestroy($im);
|
||||
imagedestroy($zend);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
Loading…
Reference in a new issue