summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/resumption/resumption_data.cc
diff options
context:
space:
mode:
authorShobhit Adlakha <ShobhitAd@users.noreply.github.com>2022-08-25 14:31:12 -0400
committerGitHub <noreply@github.com>2022-08-25 14:31:12 -0400
commit2d95d30926018bfbf0236b9c8bb89c763222cbba (patch)
tree469ada0aa415d9d5c018916be164201d3f28a9a8 /src/components/application_manager/src/resumption/resumption_data.cc
parent765246713dd54dca42ff6d4259fd984af9a71d92 (diff)
downloadsdl_core-2d95d30926018bfbf0236b9c8bb89c763222cbba.tar.gz
Core dump on ignition off when registering 20 apps (#3939)
* Add changes from luxoft PR * Address review comments * Apply suggestions from code review Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com> * Address review comments * Use sync_primitives::RecursiveLock instead of sync_primitives::Lock for extensions_lock_ Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>
Diffstat (limited to 'src/components/application_manager/src/resumption/resumption_data.cc')
-rw-r--r--src/components/application_manager/src/resumption/resumption_data.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/application_manager/src/resumption/resumption_data.cc b/src/components/application_manager/src/resumption/resumption_data.cc
index 50b95dba42..0663237c43 100644
--- a/src/components/application_manager/src/resumption/resumption_data.cc
+++ b/src/components/application_manager/src/resumption/resumption_data.cc
@@ -163,7 +163,8 @@ smart_objects::SmartObject ResumptionData::GetApplicationSubscriptions(
subscriptions);
}
- for (auto extension : application->Extensions()) {
+ auto extensions = application->Extensions();
+ for (auto& extension : extensions.GetData()) {
extension->SaveResumptionData(subscriptions);
}