diff options
author | Jeremy White <jwhite@codeweavers.com> | 2016-12-29 14:39:08 -0600 |
---|---|---|
committer | Jeremy White <jwhite@codeweavers.com> | 2017-01-20 09:55:12 -0600 |
commit | 368fdaf51de2478eee9223032b3f7caee58cf132 (patch) | |
tree | 205dfcab748cf2ae6d07f2d56a4ba65c53bdfd18 | |
parent | d83dc14e157b23bdc47ec8d4db2e531a4fa41b7c (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.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 && |