summaryrefslogtreecommitdiff
path: root/tools/aapt/XMLNode.cpp
diff options
context:
space:
mode:
author Catherine Liu <wlcl05@motorola.com> 2012-06-11 16:38:17 -0500
committer Catherine Liu <wlcl05@motorola.com> 2012-07-09 16:34:58 -0500
commit3f824c0e72ad8cde2dc9b0f4d4d7b621b5535e62 (patch)
treedf1b2e630adfd47bc08551b03649be55a5d894f3 /tools/aapt/XMLNode.cpp
parent7d77977ffab9b5d7d154894afda2c70def1222f5 (diff)
Fix cursor memory leak
In current code, if an application opens a cursor to access a provider, and doesn't close that cursor, later, when this cursor is garbage collected, it won't get closed. This will cause a memory leak in the provider. The leaked memory can only be reclaimed when the application with the leaked cursor was dead. The solution is, close the cursor when it's garbage collected. Change-Id: I786915c46d4672b6b1b37414b3bc1ff8cea2e00b
Diffstat (limited to 'tools/aapt/XMLNode.cpp')
0 files changed, 0 insertions, 0 deletions