]> granicus.if.org Git - php/commitdiff
- Don't forget to close the stream.
authorMarkus Fischer <mfischer@php.net>
Sat, 15 Jun 2002 17:46:44 +0000 (17:46 +0000)
committerMarkus Fischer <mfischer@php.net>
Sat, 15 Jun 2002 17:46:44 +0000 (17:46 +0000)
ext/gd/gd.c

index 88e54f13347962d0f5ff89f6a21139ffdc96e686..0c24d172e5db3c6f3b4644a0752dcdd20279d063 100644 (file)
@@ -1214,6 +1214,7 @@ static void _php_image_create_from(INTERNAL_FUNCTION_PARAMETERS, int image_type,
 
        if (im) {
                ZEND_REGISTER_RESOURCE(return_value, im, le_gd);
+               php_stream_close(stream);
                return;
        }