Re: [spice-html5] Give the Garbage collector a clue to recycle images; avoids fairly massive memory leaks during video playback.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ACK.

> Signed-off-by: Jeremy White <jwhite@xxxxxxxxxxxxxxx>
> ---
>  display.js |    4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/display.js b/display.js
> index f9bfe76..d0d0994 100644
> --- a/display.js
> +++ b/display.js
> @@ -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))
>          {
> --
> 1.7.10.4
> 
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]