summaryrefslogtreecommitdiff
path: root/rsProgramRaster.cpp
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2009-09-25 16:37:33 -0700
committerJason Sams <rjsams@android.com>2009-09-25 16:37:33 -0700
commitf2649a961db2995e9e24a6c98f8a419f1496c1b7 (patch)
treefcb8a48e8491e95afc367f9ae64214b7fa6c8bae /rsProgramRaster.cpp
parent1fddd90849deaae89b546ff492c345d485bbce42 (diff)
downloadrs-f2649a961db2995e9e24a6c98f8a419f1496c1b7.tar.gz
Improved object lifecycle tracking and fix leaks.
Diffstat (limited to 'rsProgramRaster.cpp')
-rw-r--r--rsProgramRaster.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/rsProgramRaster.cpp b/rsProgramRaster.cpp
index 2a9c4abd..fcf6824f 100644
--- a/rsProgramRaster.cpp
+++ b/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 {