summaryrefslogtreecommitdiffstats
path: root/apps/gallery
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-02-09 22:47:05 +0100
committerBart Visscher <bartv@thisnet.nl>2012-02-09 22:47:05 +0100
commit9379c3e1284d2d9250af4e5d406a7f6803309fad (patch)
treebb51affb3a4e0b865e1ca880d1e0ed571b77f0f4 /apps/gallery
parent8684e847b02002d17ff2d360eea977061d1ef6d1 (diff)
downloadnextcloud-server-9379c3e1284d2d9250af4e5d406a7f6803309fad.tar.gz
nextcloud-server-9379c3e1284d2d9250af4e5d406a7f6803309fad.zip
Gallery: remove unset call, not needed anymore
Diffstat (limited to 'apps/gallery')
-rw-r--r--apps/gallery/lib/scanner.php1
1 files changed, 0 insertions, 1 deletions
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');
}