From b7a6c4340a35b7cc4ceeeccf6cc01ed82c99a8ba Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Mon, 2 Nov 2009 14:25:10 -0800 Subject: Fix some leaks. This fixes the major malloc memory leak in allApps. Still tracking some much more minor issues. --- libs/rs/rsAllocation.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/rs/rsAllocation.cpp') 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) -- cgit v1.2.3-59-g8ed1b