commit | ee48679504ef5c4bb237032c4295a7aa3a26dadc | [log] [tgz] |
---|---|---|
author | François Gaffie <francois.gaffie@renault.com> | Fri May 05 13:41:49 2023 +0200 |
committer | Mikhail Naganov <mnaganov@google.com> | Fri May 05 10:54:52 2023 -0700 |
tree | 2170b8dce266ecef3aee136a20468e0621bf7f4e | |
parent | a357d55544d1b2bccf5e469b320e40cf74bdb2b5 [diff] [blame] |
audiopolicy: engineconfigurable: fix double free issue Bug: 205884982 Test: build & boot This CL fixes a regression introduced by (or revealed by) "Move engine loading out from the AudioPolicyManager". Merged-In: I708d621c200963f6f1292b943f5555293e6170e6 Change-Id: I708d621c200963f6f1292b943f5555293e6170e6 Signed-off-by: François Gaffie <francois.gaffie@renault.com>
diff --git a/services/audiopolicy/engineconfigurable/src/Engine.cpp b/services/audiopolicy/engineconfigurable/src/Engine.cpp index 257d1fc..44f1d7c 100644 --- a/services/audiopolicy/engineconfigurable/src/Engine.cpp +++ b/services/audiopolicy/engineconfigurable/src/Engine.cpp
@@ -92,7 +92,7 @@ template <typename Key> Element<Key> *Engine::getFromCollection(const Key &key) const { - const Collection<Key> collection = getCollection<Key>(); + const Collection<Key> &collection = getCollection<Key>(); return collection.get(key); }