commit | 9a1507aa10577badabcbe00396613a967302e456 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Thu Aug 28 20:38:10 2014 -0700 |
committer | Jeff Sharkey <jsharkey@android.com> | Thu Aug 28 20:38:10 2014 -0700 |
tree | 49c4ec7c00394bad7a317dd8aa63caa70c6bf43d | |
parent | 932a07cefea64e858fc999da4be577b10b59fd9f [diff] |
FileBridge needs to keep strong reference to PFD. Even though we've grabbed the underlying FD, the PFD could be GC'ed and when finalized it would end up closing the underlying FD. This fix ties the PFD object lifecycle to the returned OutputStream. Bug: 17183379 Change-Id: Ibee8f4cf78fee357181a250d15f2a653294b2877