summaryrefslogtreecommitdiff
path: root/libs/rs/rsScript.cpp
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2011-01-27 00:14:13 -0800
committerStephen Hines <srhines@google.com>2011-01-27 19:36:54 -0800
commit38f8d9d7a17037a34f4df229b1089536a6cdc8dc (patch)
tree860fe9cead9a082b87a466210cba1eb98fadf694 /libs/rs/rsScript.cpp
parent64a2c359aeda59e4bc43d48f31ade919e918ea26 (diff)
Correctly free resouces bound to scripts when the scripts are deleted.
Change-Id: Idfcc30f1a7de0badeb6d8254ed508938d89f4070 b: 3381615
Diffstat (limited to 'libs/rs/rsScript.cpp')
-rw-r--r--libs/rs/rsScript.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/libs/rs/rsScript.cpp b/libs/rs/rsScript.cpp
index efdc626071f8..9ada9c299ac4 100644
--- a/libs/rs/rsScript.cpp
+++ b/libs/rs/rsScript.cpp
@@ -78,8 +78,6 @@ void Script::setVarObj(uint32_t slot, ObjectBase *val) {
(*destPtr)->decSysRef();
}
*destPtr = val;
- } else {
- LOGV("Calling setVarObj on slot = %i which is null. This is dangerous because the script will not hold a ref count on the object.", slot);
}
}