From 61f08d6fa7c7657e9fbcd17e9a1c5b9114bb3844 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Fri, 25 Sep 2009 16:37:33 -0700 Subject: Improved object lifecycle tracking and fix leaks. --- libs/rs/rsComponent.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/rs/rsComponent.cpp') diff --git a/libs/rs/rsComponent.cpp b/libs/rs/rsComponent.cpp index 67184ffacc27..42e2e4fbf229 100644 --- a/libs/rs/rsComponent.cpp +++ b/libs/rs/rsComponent.cpp @@ -23,6 +23,8 @@ using namespace android::renderscript; Component::Component(Context *rsc) : ObjectBase(rsc) { + mAllocFile = __FILE__; + mAllocLine = __LINE__; mType = FLOAT; mKind = USER; mIsNormalized = false; @@ -33,6 +35,8 @@ Component::Component(Context *rsc, DataKind dk, DataType dt, bool isNormalized, uint32_t bits, const char * name) : ObjectBase(rsc) { + mAllocFile = __FILE__; + mAllocLine = __LINE__; mType = dt; mKind = dk; mIsNormalized = isNormalized; -- cgit v1.2.3-59-g8ed1b