From 2e8665de7c0eb4514c67baf8693d61c892e5303d Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Thu, 27 Jan 2011 00:14:13 -0800 Subject: Correctly free resouces bound to scripts when the scripts are deleted. Change-Id: Idfcc30f1a7de0badeb6d8254ed508938d89f4070 b: 3381615 --- rsScript.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'rsScript.cpp') diff --git a/rsScript.cpp b/rsScript.cpp index efdc6260..9ada9c29 100644 --- a/rsScript.cpp +++ b/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); } } -- cgit v1.2.3