From 2d95d30926018bfbf0236b9c8bb89c763222cbba Mon Sep 17 00:00:00 2001 From: Shobhit Adlakha Date: Thu, 25 Aug 2022 14:31:12 -0400 Subject: 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 * Address review comments * Use sync_primitives::RecursiveLock instead of sync_primitives::Lock for extensions_lock_ Co-authored-by: Jacob Keeler --- src/components/application_manager/src/resumption/resumption_data.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/components/application_manager/src/resumption/resumption_data.cc') 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); } -- cgit v1.2.1