Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-08-05 16:52:40 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-08-05 23:41:25 +0300
commit9aff51eb52d531a576158d02a6cb626167a3de00 (patch)
treee446c121e6505bef6d9f369893ff1e5f8ed91a53 /lib
parent66bb6fdbb017b04382cb477944a33b0c83b5bebd (diff)
Use class that actually has the destroy() method in preview generator
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Preview/Generator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Preview/Generator.php b/lib/private/Preview/Generator.php
index 45e991d551d..e47a7e5927c 100644
--- a/lib/private/Preview/Generator.php
+++ b/lib/private/Preview/Generator.php
@@ -194,7 +194,7 @@ class Generator {
// Free memory being used by the embedded image resource. Without this the image is kept in memory indefinitely.
// Garbage Collection does NOT free this memory. We have to do it ourselves.
- if ($maxPreviewImage instanceof IImage) {
+ if ($maxPreviewImage instanceof \OC_Image) {
$maxPreviewImage->destroy();
}