summaryrefslogtreecommitdiff
path: root/libs/rs/rsAllocation.cpp
diff options
context:
space:
mode:
author Jason Sams <rjsams@android.com> 2009-11-02 14:25:10 -0800
committer Jason Sams <rjsams@android.com> 2009-11-02 14:25:10 -0800
commitb7a6c4340a35b7cc4ceeeccf6cc01ed82c99a8ba (patch)
tree1c359a6e0e15c5843c7835b48c2ac6513aa4f1c4 /libs/rs/rsAllocation.cpp
parentee98c24020c1634b02cde6d333968f04a0de941f (diff)
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 b7d1297feddf..2cbfe17d40a9 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)