For the shared view.
If a content file is deleted when a handler of livebox is deleted,
The other handler cannot access to the latest content file.
So the content file should be deleted when the common handler is deleted.
the content file also should be shared with other handlers.
Change-Id: I0b70414337f0dab713827a005b1df75d1874aa72
Name: liblivebox-viewer
Summary: Library for developing the application
-Version: 0.20.4
+Version: 0.20.5
Release: 1
Group: HomeTF/Livebox
License: Flora
dlist_remove_data(s_info.livebox_common_list, common);
common->state = DESTROYED;
+
+ if (common->filename) {
+ (void)util_unlink(common->filename);
+ }
+
free(common->cluster);
free(common->category);
free(common->id);
handler->cbs.key_event.data = NULL;
}
- if (handler->common->filename) {
- (void)util_unlink(handler->common->filename);
- }
-
dlist_remove_data(s_info.livebox_list, handler);
handler->state = DESTROYED;