[Title] just return if the view is existed when the bookmark view is created
authorSangpyo Kim <sangpyo7.kim@samsung.com>
Wed, 5 Sep 2012 07:13:41 +0000 (16:13 +0900)
committerSangpyo Kim <sangpyo7.kim@samsung.com>
Wed, 5 Sep 2012 07:20:10 +0000 (16:20 +0900)
[Issue#] N_SE-8418
[Problem] Crash occured
[Cause] if the bookmark button is clicked twice in very short time, view is created before former view is destroyed.
[Solution] just return if the view is existed when the bookmark view is created
[Team] Browser UI
[Developer] sangpyo7.kim
[Request] N/A

Change-Id: I36a3fc9dc458fd738035bfa5bc5da40ff6aedb07

src/browser-data-manager.cpp

index 9cd620c..f8e955b 100755 (executable)
@@ -125,7 +125,7 @@ Browser_Bookmark_View *Browser_Data_Manager::create_bookmark_view(void)
 {
        BROWSER_LOGD("[%s]", __func__);
        if (m_bookmark_view)
-               destroy_bookmark_view();
+               return NULL;
 
        m_bookmark_view = new(nothrow) Browser_Bookmark_View;
        if (!m_bookmark_view)