Bug fix of ResourceManager 49/41449/1
authorWonYoung Choi <wy80.choi@samsung.com>
Mon, 15 Jun 2015 11:27:31 +0000 (20:27 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Mon, 15 Jun 2015 11:27:31 +0000 (20:27 +0900)
- iteration for app_control_list was invalid.

Change-Id: I2830c98b378a9188a7e838deae7d9e9cfc33c053

src/common/resource_manager.cc

index 76223ac..3fb400e 100755 (executable)
@@ -154,7 +154,7 @@ static void FindOperations(AppControlList* app_control_list,
   auto iter = app_control_list->begin();
   while (iter != app_control_list->end()) {
     if (iter->operation() != operation) {
-      app_control_list->erase(iter++);
+      app_control_list->erase(iter);
     } else {
       ++iter;
     }