Skip to content
Snippets Groups Projects
Commit 0980c485 authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #7568 from owncloud/lib_preview_add_fclose

add fclose, fixes issue from bdb96b9a
parents 8c1cd2b8 32a5d51f
Branches
No related tags found
No related merge requests found
......@@ -408,6 +408,7 @@ class Preview {
$image->loadFromFileHandle($stream);
$this->preview = $image->valid() ? $image : null;
$this->resizeAndCrop();
fclose($stream);
}
if (is_null($this->preview)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment