summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-08-05 15:52:40 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-08-05 15:52:40 +0200
commitf510da139f787f7b1f25ef1785e4161a9255a87a (patch)
treee219adb9efa4c82107bf022cfda78f13b50ea598
parent56ed563b0c02834c1b3fffb839da25a2918ec7e8 (diff)
downloadnextcloud-server-f510da139f787f7b1f25ef1785e4161a9255a87a.tar.gz
nextcloud-server-f510da139f787f7b1f25ef1785e4161a9255a87a.zip
Use class that actually has the destroy() method in preview generator
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
-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();
}