[4.0] Fix callback manager issue
[platform/core/uifw/dali-adaptor.git] / adaptors / common / event-loop / ecore / ecore-callback-manager.cpp
index 8c7dfb6..96ea7d4 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -150,6 +150,9 @@ void EcoreCallbackManager::RemoveIdleCallback( CallbackBase* callback )
     {
       it = mCallbackContainer.erase( it );
       ecore_idler_del( data->mIdler );
+
+      // delete our data
+      delete data;
     }
     else
     {