From 36389288e8c7f2538b5ae7dd6877e81a9a76c644 Mon Sep 17 00:00:00 2001 From: Jason Bedard Date: Mon, 19 Jun 2017 22:23:24 -0700 Subject: [PATCH] Deferred: fix memory leak of promise callbacks Fixes gh-3606 Closes gh-3657 --- src/deferred.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/deferred.js b/src/deferred.js index 7e2ced25b..a627f5ed6 100644 --- a/src/deferred.js +++ b/src/deferred.js @@ -301,8 +301,15 @@ jQuery.extend( { // fulfilled_callbacks.disable tuples[ 3 - i ][ 2 ].disable, + // rejected_handlers.disable + // fulfilled_handlers.disable + tuples[ 3 - i ][ 3 ].disable, + // progress_callbacks.lock - tuples[ 0 ][ 2 ].lock + tuples[ 0 ][ 2 ].lock, + + // progress_handlers.lock + tuples[ 0 ][ 3 ].lock ); } -- 2.39.5