Improved object lifecycle tracking and fix leaks.
diff --git a/rsScript.cpp b/rsScript.cpp
index f9526fe..cb1436b 100644
--- a/rsScript.cpp
+++ b/rsScript.cpp
@@ -21,6 +21,8 @@
 
 Script::Script(Context *rsc) : ObjectBase(rsc)
 {
+    mAllocFile = __FILE__;
+    mAllocLine = __LINE__;
     memset(&mEnviroment, 0, sizeof(mEnviroment));
     mEnviroment.mClearColor[0] = 0;
     mEnviroment.mClearColor[1] = 0;