diff options
author | Jason Bedard <jason+github@jbedard.ca> | 2017-06-19 22:23:24 -0700 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2017-06-20 01:23:24 -0400 |
commit | 36389288e8c7f2538b5ae7dd6877e81a9a76c644 (patch) | |
tree | c9ea874fa28bcfb9f6061236b94b98c6a0c381b9 /src | |
parent | 80f1c8239e9d5f793f3e54e0cb8d7bd0747e4856 (diff) | |
download | jquery-36389288e8c7f2538b5ae7dd6877e81a9a76c644.tar.gz jquery-36389288e8c7f2538b5ae7dd6877e81a9a76c644.zip |
Deferred: fix memory leak of promise callbacks
Fixes gh-3606
Closes gh-3657
Diffstat (limited to 'src')
-rw-r--r-- | src/deferred.js | 9 |
1 files changed, 8 insertions, 1 deletions
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 ); } |