Added WeakHandleBase::Reset method. 03/49603/2
authorChu Hoang <c.hoang@samsung.com>
Thu, 15 Oct 2015 10:15:45 +0000 (11:15 +0100)
committerChu Hoang <c.hoang@samsung.com>
Fri, 23 Oct 2015 16:07:03 +0000 (09:07 -0700)
Change-Id: I8dc3606b7fb23b20897a33366520f9405bf5f9d5

dali/devel-api/object/weak-handle.cpp
dali/devel-api/object/weak-handle.h

index 94bb88f..eeed348 100644 (file)
@@ -132,4 +132,11 @@ Handle WeakHandleBase::GetBaseHandle() const
   return Handle( mImpl->mObject );
 }
 
+void WeakHandleBase::Reset()
+{
+  delete mImpl;
+  mImpl = NULL;
+}
+
+
 } // Dali
index 81613f5..f2b4ea3 100644 (file)
@@ -93,6 +93,12 @@ public:
    */
   Handle GetBaseHandle() const;
 
+  /**
+   * @brief Resets this weak handle to not point to any Dali object
+   */
+  void Reset();
+
+
 protected:
 
   struct Impl;