diff options
author | Georg Ehrke <developer@georgehrke.com> | 2014-03-05 15:37:26 +0100 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2014-03-05 15:37:26 +0100 |
commit | 32a5d51fa6cdbf437342f028fce6e91b53ece16f (patch) | |
tree | e041409b0f9f3a07f7406347f410c02f8d2e63f7 /lib/private/preview.php | |
parent | 37d22bf170708a3f6b9395fb6afe25c255e91a9a (diff) | |
download | nextcloud-server-32a5d51fa6cdbf437342f028fce6e91b53ece16f.tar.gz nextcloud-server-32a5d51fa6cdbf437342f028fce6e91b53ece16f.zip |
add fclose, fixes issue from bdb96b9af85256f9b3f8663ccf6d27b3d1330918
Diffstat (limited to 'lib/private/preview.php')
-rwxr-xr-x | lib/private/preview.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/preview.php b/lib/private/preview.php index b0d91fd5680..74051fbc2a3 100755 --- a/lib/private/preview.php +++ b/lib/private/preview.php @@ -408,6 +408,7 @@ class Preview { $image->loadFromFileHandle($stream); $this->preview = $image->valid() ? $image : null; $this->resizeAndCrop(); + fclose($stream); } if (is_null($this->preview)) { |