Fix ClearViewStack deleting bug
authorSeungkeun Lee <sngn.lee@samsung.com>
Mon, 13 Apr 2015 10:21:33 +0000 (19:21 +0900)
committerSeungkeun Lee <sngn.lee@samsung.com>
Mon, 13 Apr 2015 10:21:33 +0000 (19:21 +0900)
Change-Id: I0693101f17be43fe207d54e9db97f7c44ff0e160

src/runtime/web_application.cc

index 65c832d..0e14c7f 100755 (executable)
@@ -155,7 +155,7 @@ void WebApplication::SendAppControlEvent() {
 void WebApplication::ClearViewStack() {
   window_->SetContent(NULL);
   auto it = view_stack_.begin();
-  while (it != view_stack_.end()) {
+  for ( ; it != view_stack_.end(); ++it) {
     (*it)->Suspend();
     delete *it;
   }