Merge pull request #7568 from owncloud/lib_preview_add_fclose
add fclose, fixes issue from bdb96b9af8
This commit is contained in:
commit
0980c48526
|
@ -408,6 +408,7 @@ class Preview {
|
||||||
$image->loadFromFileHandle($stream);
|
$image->loadFromFileHandle($stream);
|
||||||
$this->preview = $image->valid() ? $image : null;
|
$this->preview = $image->valid() ? $image : null;
|
||||||
$this->resizeAndCrop();
|
$this->resizeAndCrop();
|
||||||
|
fclose($stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_null($this->preview)) {
|
if (is_null($this->preview)) {
|
||||||
|
|
Loading…
Reference in New Issue