Improved object lifecycle tracking and fix leaks.
diff --git a/rsComponent.cpp b/rsComponent.cpp
index 67184ff..42e2e4f 100644
--- a/rsComponent.cpp
+++ b/rsComponent.cpp
@@ -23,6 +23,8 @@
 
 Component::Component(Context *rsc) : ObjectBase(rsc)
 {
+    mAllocFile = __FILE__;
+    mAllocLine = __LINE__;
     mType = FLOAT;
     mKind = USER;
     mIsNormalized = false;
@@ -33,6 +35,8 @@
     DataKind dk, DataType dt,
     bool isNormalized, uint32_t bits, const char * name) : ObjectBase(rsc)
 {
+    mAllocFile = __FILE__;
+    mAllocLine = __LINE__;
     mType = dt;
     mKind = dk;
     mIsNormalized = isNormalized;