Revert "[Tizen] Avoid Svace MEMORY_LEAK warning in callback.cpp" 68/131768/1
authorJinho, Lee <jeano.lee@samsung.com>
Tue, 30 May 2017 07:15:24 +0000 (16:15 +0900)
committerJinho, Lee <jeano.lee@samsung.com>
Tue, 30 May 2017 07:15:26 +0000 (16:15 +0900)
This reverts commit 4a0606fa1a653af9a571c565669ae91dca8703d1.

Change-Id: I150a390e63f56471ade1497483384f83544b8b4b

dali/public-api/signals/callback.cpp

index 6bbf33f..841b1df 100644 (file)
@@ -45,24 +45,18 @@ CallbackBase::CallbackBase( void* object, MemberFunction function, Dispatcher di
 : mMemberFunction( function )
 {
   mImpl = new CallbackBase::Impl;
-  if( mImpl )
-  {
-    mImpl->mObjectPointer = object;
-    mImpl->mMemberFunctionDispatcher = dispatcher;
-    mImpl->mDestructorDispatcher = NULL; // object is not owned
-  }
+  mImpl->mObjectPointer = object;
+  mImpl->mMemberFunctionDispatcher = dispatcher;
+  mImpl->mDestructorDispatcher = NULL; // object is not owned
 }
 
 CallbackBase::CallbackBase( void* object, MemberFunction function, Dispatcher dispatcher, Destructor destructor )
 : mMemberFunction( function )
 {
   mImpl = new CallbackBase::Impl;
-  if( mImpl )
-  {
-    mImpl->mObjectPointer = object;
-    mImpl->mMemberFunctionDispatcher = dispatcher;
-    mImpl->mDestructorDispatcher = destructor; // object is owned
-  }
+  mImpl->mObjectPointer = object;
+  mImpl->mMemberFunctionDispatcher = dispatcher;
+  mImpl->mDestructorDispatcher = destructor; // object is owned
 }
 
 void CallbackBase::Reset()