diff options
| 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 |
| commit | b7a6c4340a35b7cc4ceeeccf6cc01ed82c99a8ba (patch) | |
| tree | 1c359a6e0e15c5843c7835b48c2ac6513aa4f1c4 /libs/rs/rsAllocation.cpp | |
| parent | ee98c24020c1634b02cde6d333968f04a0de941f (diff) | |
| download | frameworks_base-b7a6c4340a35b7cc4ceeeccf6cc01ed82c99a8ba.zip frameworks_base-b7a6c4340a35b7cc4ceeeccf6cc01ed82c99a8ba.tar.gz frameworks_base-b7a6c4340a35b7cc4ceeeccf6cc01ed82c99a8ba.tar.bz2 | |
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.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/rs/rsAllocation.cpp b/libs/rs/rsAllocation.cpp index b7d1297..2cbfe17 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) |
