[PATCH spice-html5] Disable the onload function when clearing the image source.

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

 



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@xxxxxxxxxxxxxxx>
---
 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 &&
-- 
2.1.4

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://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]