if img was null then we always deref on calling _applyDelta

in practice presumably img can't be null, seeing as currently hasContent
would then be true, then we always deref on calling this._applyDelta

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I48d2466c0a12e4f7084d57a55a963cea469cf2fa
This commit is contained in:
Caolán McNamara 2024-01-19 15:56:53 +00:00 committed by Michael Meeks
parent 8d5be1286b
commit c4be02c2b3

View file

@ -7363,7 +7363,7 @@ L.CanvasTileLayer = L.Layer.extend({
if (tile.invalidFrom == tile.wireId)
window.app.console.debug('Nasty - updated wireId matches old one');
var hasContent = true;
var hasContent = img != null;
// obscure case: we could have garbage collected the
// keyframe content in JS but coolwsd still thinks we have