mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-html5
synced 2025-12-30 01:30:15 +00:00
Give the Garbage collector a clue to recycle images; avoids
fairly massive memory leaks during video playback.
This commit is contained in:
parent
c2bb090b16
commit
366c0a3fca
@ -778,6 +778,10 @@ function handle_draw_jpeg_onload()
|
||||
{
|
||||
context.drawImage(this, this.o.base.box.left, this.o.base.box.top);
|
||||
|
||||
// Give the Garbage collector a clue to recycle this; avoids
|
||||
// fairly massive memory leaks during video playback
|
||||
this.src = null;
|
||||
|
||||
if (this.o.descriptor &&
|
||||
(this.o.descriptor.flags & SPICE_IMAGE_FLAGS_CACHE_ME))
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user