Skip to content
Snippets Groups Projects
Commit 9379c3e1 authored by Bart Visscher's avatar Bart Visscher
Browse files

Gallery: remove unset call, not needed anymore

parent 8684e847
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment