Modify toolkit management
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 10 Jul 2018 07:27:25 +0000 (16:27 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 11 Jul 2018 00:28:50 +0000 (09:28 +0900)
Before setting current toolkit handle, temporary toolkit handle must be removed.

Change-Id: Id6a69efad4303010da0ca3bd371196ed2eadbe57
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
watch-control/src/control.c

index 9319d0a..e86c510 100755 (executable)
@@ -1012,6 +1012,8 @@ static int __launch_signal_handler(const char *endpoint,
        if (exist) {
                screen_connector_toolkit_evas_remove(__toolkit);
        } else {
+               if (__tmp_toolkit)
+                       screen_connector_toolkit_evas_remove(__tmp_toolkit);
                __tmp_toolkit = __toolkit;
                _D("Old toolkit %p", __tmp_toolkit);
        }