diff options
| author | 2009-11-02 15:22:34 -0800 | |
|---|---|---|
| committer | 2009-11-02 15:22:34 -0800 | |
| commit | 43b5a566442f2f15cbc04d2ac2c7e2169d10d8bd (patch) | |
| tree | d0d5fc560e12eb62fcc3772fa06c473fbf30b7e5 /libs/rs/rsAllocation.cpp | |
| parent | cb93e01f4c474177a2a3d9d02f5b21329a1aed5e (diff) | |
| parent | 766df995e30caa054cc25068e55f160c765590eb (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.cpp | 2 |
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) |