summaryrefslogtreecommitdiff
path: root/src/scripts.c
diff options
context:
space:
mode:
authorportix <none@none>2012-12-08 04:41:47 +0100
committerportix <none@none>2012-12-08 04:41:47 +0100
commit308dcd806e1fb84af0509d64c799dcd21a0673df (patch)
tree2c914bafbf187b8427571b2a122415f0f7048985 /src/scripts.c
parentb0fc12c715b99391c07f3ba73c068f69b345092e (diff)
parentf7c1c5ebe3ff5a755cd8025635da05ac7807db8c (diff)
downloaddwb-308dcd806e1fb84af0509d64c799dcd21a0673df.zip
Automated merge with ssh://bitbucket.org/portix/dwb
Diffstat (limited to 'src/scripts.c')
-rw-r--r--src/scripts.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scripts.c b/src/scripts.c
index 33efd94d..50f92b0f 100644
--- a/src/scripts.c
+++ b/src/scripts.c
@@ -1426,9 +1426,11 @@ deferred_transition(JSContextRef ctx, JSObjectRef old, JSObjectRef new)
{
DeferredPriv *opriv = JSObjectGetPrivate(old);
DeferredPriv *npriv = JSObjectGetPrivate(new);
+
npriv->resolve = opriv->resolve;
npriv->reject = opriv->reject;
npriv->next = opriv->next;
+
deferred_destroy(ctx, old, opriv);
return npriv;
}