commit | c21b5a019c1da00b6d861cd2859e3c349a44b3a7 | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Mon Jan 07 17:15:12 2013 -0800 |
committer | Jeff Brown <jeffbrown@google.com> | Tue Jan 08 15:32:50 2013 -0800 |
tree | 750072f97e644448c149c8d5447d514cca189ba0 | |
parent | f6f00b14fb4d2a247393fd3e6d45de077a8b4da9 [diff] |
Fix cursor window leak when query execution fails. Ensure that the Cursor object is closed if a query on a content provider fails due to an error or is canceled during execution. There are several places in the code where similar problems can occur. To further reduce the likelihood of leaks, close the cursor window immediately when a query fails. Bug: 7278577 Change-Id: I8c686c259de80a162b9086628a817d57f09fdd13