Compare the id after util_uri_to_path.
authorSung-jae Park <nicesj.park@samsung.com>
Thu, 9 Apr 2015 11:05:38 +0000 (20:05 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Thu, 9 Apr 2015 11:05:38 +0000 (20:05 +0900)
[model] Redwood,Kiran,B3(Wearable)
[binary_type] AP
[customer] Docomo/Orange/ATT/Open
[issue#] N/A
[problem]
[cause]
[solution]
[team] HomeTF
[request]
[horizontal_expansion]

Change-Id: I968daad94dd376cc64c5c5c221e7b63d54a3ac2e

src/virtual_window.c
src/widget.c

index 74d1b05..d2f3e23 100644 (file)
@@ -33,6 +33,7 @@
 #include <widget_conf.h>
 #include <widget_buffer.h>
 #include <widget_provider.h>
+#include <widget_util.h>
 
 #include "widget.h"
 #include "widget_internal.h"
@@ -865,11 +866,13 @@ static void post_render_cb(void *data, Evas *e, void *event_info)
 static void pre_destroy_cb(widget_pre_callback_e type, const char *pkgname, const char *id, void *data)
 {
        vwin_info_t info = data;
-       if (strcmp(info->id, id)) {
+
+       if (id && strcmp(info->id, widget_util_uri_to_path(id))) {
                /* Skip */
-               DbgPrint("SKIP: Pre destroy event callback is called [%s]\n", id);
+               DbgPrint("SKIP: Pre destroy event callback is called [%s], %s\n", id, info->id);
                return;
        }
+
        DbgPrint("Pre destroy event callback is called [%s]\n", id);
 
        if (info->ee) {
index c521977..2b29f12 100644 (file)
@@ -31,6 +31,7 @@
 #include <widget_provider_buffer.h>
 #include <widget_conf.h>
 #include <widget_buffer.h>
+#include <widget_util.h>
 
 #include "debug.h"
 #include "dlist.h"