From 586925b82f8423855881658fc26d9acc786c026a Mon Sep 17 00:00:00 2001 From: Adam Bialogonski Date: Mon, 1 Mar 2021 12:06:55 +0000 Subject: [PATCH] Fixed crash on exit Making sure that pipeline cache first destroys pipelines and then programs. Change-Id: I2a7ab0cef8dc2866c04fbaf15852258bb415ebf0 --- .../internal/graphics/gles-impl/gles-graphics-pipeline-cache.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dali/internal/graphics/gles-impl/gles-graphics-pipeline-cache.cpp b/dali/internal/graphics/gles-impl/gles-graphics-pipeline-cache.cpp index 4b178a2..5d575f7 100644 --- a/dali/internal/graphics/gles-impl/gles-graphics-pipeline-cache.cpp +++ b/dali/internal/graphics/gles-impl/gles-graphics-pipeline-cache.cpp @@ -238,7 +238,14 @@ struct PipelineCache::Impl /** * @brief destructor */ - ~Impl() = default; + ~Impl() + { + // First destroy pipelines + entries.clear(); + + // Now programs + programEntries.clear(); + } /** * @brief Structure describes a single cache entry -- 2.7.4