Use class that actually has the destroy() method in preview generator

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2020-08-05 15:52:40 +02:00
parent 56ed563b0c
commit f510da139f
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}