[Tizen] Delete callback memory when rasterize callback not processed
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / visuals / animated-vector-image / vector-animation-manager.cpp
index f23439d..fef8167 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
@@ -109,6 +109,9 @@ void VectorAnimationManager::UnregisterEventCallback(CallbackBase* callback)
   {
     mEventCallbacks.erase(iter);
 
+    // Delete callback base memory
+    delete callback;
+
     if(mEventCallbacks.empty())
     {
       if(Adaptor::IsAvailable())