Merge pull request #7568 from owncloud/lib_preview_add_fclose

add fclose, fixes issue from bdb96b9af8
This commit is contained in:
Morris Jobke 2014-03-05 17:36:53 +01:00
commit 0980c48526
1 changed files with 1 additions and 0 deletions

View File

@ -408,6 +408,7 @@ class Preview {
$image->loadFromFileHandle($stream);
$this->preview = $image->valid() ? $image : null;
$this->resizeAndCrop();
fclose($stream);
}
if (is_null($this->preview)) {