From: Morris Jobke Date: Wed, 5 Aug 2020 13:52:40 +0000 (+0200) Subject: Use class that actually has the destroy() method in preview generator X-Git-Tag: v20.0.0beta1~127^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F22008%2Fhead;p=nextcloud-server.git Use class that actually has the destroy() method in preview generator Signed-off-by: Morris Jobke --- 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(); }