From 9379c3e1284d2d9250af4e5d406a7f6803309fad Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Thu, 9 Feb 2012 22:47:05 +0100 Subject: Gallery: remove unset call, not needed anymore --- apps/gallery/lib/scanner.php | 1 - 1 file changed, 1 deletion(-) (limited to 'apps/gallery') diff --git a/apps/gallery/lib/scanner.php b/apps/gallery/lib/scanner.php index 9fdadbe38c7..64efb006ad1 100644 --- a/apps/gallery/lib/scanner.php +++ b/apps/gallery/lib/scanner.php @@ -93,7 +93,6 @@ class OC_Gallery_Scanner { if ($image && $image->valid()) { imagecopyresampled($thumbnail, $image->resource(), $i*200, 0, 0, 0, 200, 200, 200, 200); } - unset($image); // unset $image here to control the lifetime of image::$resource } imagepng($thumbnail, OC_Config::getValue("datadirectory").'/'. OC_User::getUser() .'/gallery/' . $albumName.'.png'); } -- cgit v1.2.3