Use class that actually has the destroy() method in preview generator
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
66bb6fdbb0
commit
9aff51eb52
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue