Fixed crash that occurs after clicking on 'History' button 98/46798/6 accepted/tizen/tv/20150828.012542 submit/tizen_tv/20150827.234458
authorAlbert Malewski <a.malewski@samsung.com>
Thu, 27 Aug 2015 07:45:37 +0000 (09:45 +0200)
committerAlbert Malewski <a.malewski@samsung.com>
Thu, 27 Aug 2015 10:43:59 +0000 (12:43 +0200)
commitdfa047c462421e1c4f23375a620fcc01b6da2a00
tree486bb76f7bc59c94411ee687593ee136fbb6db1e
parent2160e14cfba3c8c4c4a6ad19469b35a9e41d56a2
Fixed crash that occurs after clicking on 'History' button

[Issue#]    https://bugs.tizen.org/jira/browse/TT-98
[Problem]   Browser crashes after clicking on 'History' button.
[Cause]     There was used normal pointer that pointed to the destroyed object.
[Sollution] 1. Changed type of HistoryService::getHistoryItems() and
            HistoryService::getMostVisitedHistoryItems() functions that the return
            std::shared_ptr<std::vector<std::shared_ptr<HistoryItem> > >.
            2. Added HistoryService::getHistoryItem function which returns HistoryItem by id.
            3. Added HistoryService::getCurrentTab functions that returns currently
            observed web page's info.
            4. Changed type of h_item pointer in MoreMenuUI.cpp from normal pointer to
            shared_ptr.
            5. Added listItemDel function to avoid memory leaks when genlist is cleared.
[Verify]    Launch browser > More Menu > History > Obs
            History should not crash after clicking on 'History' button.

Change-Id: I9140c1dedc061b2d014792aa14da92053e7aa27f
services/HistoryService/HistoryService.cpp
services/HistoryService/HistoryService.h
services/HistoryUI/HistoryUI.cpp
services/HistoryUI/HistoryUI.h
services/MainUI/MainUI.cpp
services/MainUI/MainUI.h
services/MoreMenuUI/MoreMenuUI.cpp
services/MoreMenuUI/MoreMenuUI.h
services/SimpleUI/SimpleUI.cpp
services/SimpleUI/SimpleUI.h