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 committed by backportbot[bot]
parent 66bb6fdbb0
commit 9aff51eb52
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. // 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. // Garbage Collection does NOT free this memory. We have to do it ourselves.
if ($maxPreviewImage instanceof IImage) { if ($maxPreviewImage instanceof \OC_Image) {
$maxPreviewImage->destroy(); $maxPreviewImage->destroy();
} }