Fix Frame Broker
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 27 Feb 2020 05:28:09 +0000 (14:28 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 27 Feb 2020 06:36:41 +0000 (15:36 +0900)
-  Cancel the launch request while destroying the frame context handle

Change-Id: I8cee182aaa4def1b40071397d0c1a5de4c409045
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
frame-broker/src/frame_context.c

index 9277b67..d27fd94 100644 (file)
@@ -99,6 +99,10 @@ int frame_context_destroy(frame_context_h handle)
                return FRAME_BROKER_ERROR_INVALID_PARAMETER;
        }
 
+       if (handle->state == FRAME_CONTEXT_STATE_NONE ||
+                       handle->state == FRAME_CONTEXT_STATE_CREATED)
+               frame_context_finish_animation(handle);
+
        frame_broker_set_frame_context(handle->broker, NULL);
 
        if (handle->idle_tag)