summaryrefslogtreecommitdiff
path: root/libs/rs/rsAllocation.cpp
diff options
context:
space:
mode:
author Jason Sams <rjsams@android.com> 2009-11-02 15:22:34 -0800
committer Android Git Automerger <android-git-automerger@android.com> 2009-11-02 15:22:34 -0800
commit43b5a566442f2f15cbc04d2ac2c7e2169d10d8bd (patch)
treed0d5fc560e12eb62fcc3772fa06c473fbf30b7e5 /libs/rs/rsAllocation.cpp
parentcb93e01f4c474177a2a3d9d02f5b21329a1aed5e (diff)
parent766df995e30caa054cc25068e55f160c765590eb (diff)
am 766df995: am d31b0e44: am 3bbb5e9a: Merge change Ib7a6c434 into eclair
Merge commit '766df995e30caa054cc25068e55f160c765590eb' * commit '766df995e30caa054cc25068e55f160c765590eb': Fix some leaks. This fixes the major malloc memory leak in allApps. Still tracking some much more minor issues.
Diffstat (limited to 'libs/rs/rsAllocation.cpp')
-rw-r--r--libs/rs/rsAllocation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/rs/rsAllocation.cpp b/libs/rs/rsAllocation.cpp
index 67706110634d..75b4462a9ab4 100644
--- a/libs/rs/rsAllocation.cpp
+++ b/libs/rs/rsAllocation.cpp
@@ -52,6 +52,8 @@ Allocation::Allocation(Context *rsc, const Type *type) : ObjectBase(rsc)
Allocation::~Allocation()
{
+ free(mPtr);
+ mPtr = NULL;
}
void Allocation::setCpuWritable(bool)