summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy White <jwhite@codeweavers.com>2016-12-29 14:39:08 -0600
committerJeremy White <jwhite@codeweavers.com>2017-01-20 09:55:12 -0600
commit368fdaf51de2478eee9223032b3f7caee58cf132 (patch)
tree205dfcab748cf2ae6d07f2d56a4ba65c53bdfd18
parentd83dc14e157b23bdc47ec8d4db2e531a4fa41b7c (diff)
Disable the onload function when clearing the image source.
This fixes a bug introduced by my commit 42134d3e, which would lead to an infinite recursion of onload statements.
-rw-r--r--display.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/display.js b/display.js
index c97f237..68e0af5 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 &&