petkaantonov/bluebird — pull request #104 by jonasi (2014-02-07 16:25:32+00:00)
Title: clear out ref to promise after resolver has completed

Not sure about the "correctness" of this commit. Can a `nodebackForPromise` fn be called more than once?

In any case, I was doing some heap inspecting of my app which heavily utilizes bluebird and was noticing that promises (and their fulfillment values and errors) were hanging around. Walking the retaining tree in `node-webkit-agent`, I noticed that the ref was held only by bluebird internal fn's.

After making this change, the promises were gc'ed immediately.