Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/3bf39f7f2ce2807d1960a2a4932ca0dd15eb139e
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/3bf39f7f2ce2807d1960a2a4932ca0dd15eb139e
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/3bf39f7f2ce2807d1960a2a4932ca0dd15eb139e

The branch, master has been updated
       via  3bf39f7f2ce2807d1960a2a4932ca0dd15eb139e (commit)
      from  74b8767ee2628f46d4e595a3a5e1928fcbb3f64c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=3bf39f7f2ce2807d1960a2a4932ca0dd15eb139e
commit 3bf39f7f2ce2807d1960a2a4932ca0dd15eb139e
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    JS dom event binding: Squash leak of string.

diff --git a/content/handlers/javascript/duktape/Event.bnd 
b/content/handlers/javascript/duktape/Event.bnd
index aa69daa..2c24cfa 100644
--- a/content/handlers/javascript/duktape/Event.bnd
+++ b/content/handlers/javascript/duktape/Event.bnd
@@ -182,8 +182,8 @@ method Event::initEvent ()
        cancellable = duk_get_boolean(ctx, 2);
 
        exc = dom_event_init(priv->evt, text_str, bubbles, cancellable);
+       dom_string_unref(text_str);
        if (exc != DOM_NO_ERR) {
-               dom_string_unref(text_str);
                return 0;
        }
 


-----------------------------------------------------------------------

Summary of changes:
 content/handlers/javascript/duktape/Event.bnd |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/content/handlers/javascript/duktape/Event.bnd 
b/content/handlers/javascript/duktape/Event.bnd
index aa69daa..2c24cfa 100644
--- a/content/handlers/javascript/duktape/Event.bnd
+++ b/content/handlers/javascript/duktape/Event.bnd
@@ -182,8 +182,8 @@ method Event::initEvent ()
        cancellable = duk_get_boolean(ctx, 2);
 
        exc = dom_event_init(priv->evt, text_str, bubbles, cancellable);
+       dom_string_unref(text_str);
        if (exc != DOM_NO_ERR) {
-               dom_string_unref(text_str);
                return 0;
        }
 


-- 
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to