[Spice-devel] [PATCH spice-html5] Disable the onload function when clearing the image source.
Pavel Grunt
pgrunt at redhat.com
Tue Jan 10 16:35:49 UTC 2017
Ack,
Pavel
On Thu, 2016-12-29 at 15:27 -0600, Jeremy White wrote:
> This fixes a bug introduced by my commit 42134d3e, which would
> lead to an infinite recursion of onload statements.
>
> Signed-off-by: Jeremy White <jwhite at codeweavers.com>
> ---
> display.js | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/display.js b/display.js
> index 40a809e..6691c5e 100644
> --- a/display.js
> +++ b/display.js
> @@ -933,6 +933,7 @@ function handle_draw_jpeg_onload()
>
> // Give the Garbage collector a clue to recycle this;
> avoids
> // fairly massive memory leaks during video playback
> + this.onload = undefined;
> this.src = EMPTY_GIF_IMAGE;
>
> if (this.o.descriptor &&
More information about the Spice-devel
mailing list