Fix the prevent issue.
authorSung-jae Park <nicesj.park@samsung.com>
Wed, 29 May 2013 07:04:58 +0000 (16:04 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Wed, 29 May 2013 07:04:58 +0000 (16:04 +0900)
Change-Id: Id2c9770b6c4af5808373c8948c871e05920e9f16

icon_src/script_handler.c
packaging/org.tizen.data-provider-slave.spec
src/lb.c

index 1bb9ac3..94a6a80 100644 (file)
@@ -829,11 +829,11 @@ static inline void consuming_parsed_block(Evas_Object *edje, int lineno, struct
                break;
        }
 
-       delete_block(block);
-
        if (!handlers[i].type)
                ErrPrint("%d: Unknown block type: %s\n", lineno, block->type);
 
+       delete_block(block);
+
        return;
 }
 
@@ -893,6 +893,7 @@ HAPI int script_handler_parse_desc(Evas_Object *edje, const char *descfile)
        info = malloc(sizeof(*info));
        if (!info) {
                ErrPrint("Heap: %s\n", strerror(errno));
+               fclose(fp);
                return LB_STATUS_ERROR_MEMORY;
        }
        info->id = NULL;
index 8fce55e..04dd661 100644 (file)
@@ -2,7 +2,7 @@
 
 Name: org.tizen.data-provider-slave
 Summary: Plugin type livebox service provider.
-Version: 0.11.4
+Version: 0.11.5
 Release: 1
 Group: HomeTF/Livebox
 License: Flora License
index de95745..cf11dfd 100644 (file)
--- a/src/lb.c
+++ b/src/lb.c
@@ -1117,8 +1117,7 @@ HAPI int lb_script_event(const char *pkgname, const char *id, const char *emissi
 
        item = eina_list_data_get(l);
 
-       DbgPrint("source(%s) emission(%s) %d\n", source, emission, item->inst->item->has_livebox_script);
-       if (emission && source && !strcmp(source, util_uri_to_path(id))) {
+       if (emission && source && !strcmp(source, id)) {
                if (item->inst->item->has_livebox_script) {
                        if (!strcmp(emission, "lb,show")) {
                                DbgPrint("Livebox(%s) script is ready now\n", id);
@@ -1130,16 +1129,22 @@ HAPI int lb_script_event(const char *pkgname, const char *id, const char *emissi
                                                                item->inst->w, item->inst->h, item->inst->priority, item->inst->content, item->inst->title);
                                        item->is_lb_updated = 0;
                                }
+
+                               source = util_uri_to_path(source);
                        } else if (!strcmp(emission, "lb,hide")) {
                                DbgPrint("Livebox(%s) script is hide now\n", id);
                                item->is_lb_show = 0;
+
+                               source = util_uri_to_path(source);
                        }
                }
 
                if (!strcmp(emission, "pd,show")) {
                        item->is_pd_show = 1;
+                       source = util_uri_to_path(source);
                } else if (!strcmp(emission, "pd,hide")) {
                        item->is_pd_show = 0;
+                       source = util_uri_to_path(source);
                }
        }