diff options
author | 2009-09-25 16:37:33 -0700 | |
---|---|---|
committer | 2009-09-25 16:37:33 -0700 | |
commit | 61f08d6fa7c7657e9fbcd17e9a1c5b9114bb3844 (patch) | |
tree | e836663efc3047198d5aef1723cee4e5556fe8c4 /libs/rs/rsProgramRaster.cpp | |
parent | 66b2771d745aa66df5cf80b300b5ba0f936ff22e (diff) |
Improved object lifecycle tracking and fix leaks.
Diffstat (limited to 'libs/rs/rsProgramRaster.cpp')
-rw-r--r-- | libs/rs/rsProgramRaster.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/rs/rsProgramRaster.cpp b/libs/rs/rsProgramRaster.cpp index 2a9c4abd2cb6..fcf6824f691d 100644 --- a/libs/rs/rsProgramRaster.cpp +++ b/libs/rs/rsProgramRaster.cpp @@ -32,6 +32,8 @@ ProgramRaster::ProgramRaster(Context *rsc, bool pointSprite) : Program(rsc, in, out) { + mAllocFile = __FILE__; + mAllocLine = __LINE__; mPointSmooth = pointSmooth; mLineSmooth = lineSmooth; mPointSprite = pointSprite; @@ -100,6 +102,12 @@ void ProgramRasterState::init(Context *rsc, int32_t w, int32_t h) mDefault.set(pr); } +void ProgramRasterState::deinit(Context *rsc) +{ + mDefault.clear(); + mLast.clear(); +} + namespace android { namespace renderscript { |