[4.0] Fix callback manager issue 42/194942/1
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 22 Nov 2018 05:35:16 +0000 (14:35 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 10 Dec 2018 02:53:40 +0000 (11:53 +0900)
Change-Id: I85d7f1a74a960c1f118fd55d4101b18aaf14f0fc

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
     {