aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Sommerfeld <kai.sommerfeld@gmx.com>2020-10-04 09:08:55 +0200
committerGitHub <noreply@github.com>2020-10-04 09:08:55 +0200
commitcccae01fd5a8f08b661c4fde5663c02a629f975e (patch)
tree757abde8cfeb53c7e8e7d259ba45f7390bf16cb8
parent098478702becaa0f2d385d882efa2143b1b9044d (diff)
parenteabd0f8696a18aebd57f65534adf6cf3755a9c96 (diff)
Merge pull request #18508 from AlwinEsch/fix-crash
[addons] fix crash by missing list end define
-rw-r--r--xbmc/filesystem/AddonsDirectory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/filesystem/AddonsDirectory.cpp b/xbmc/filesystem/AddonsDirectory.cpp
index 455b37d02f..f802617a7d 100644
--- a/xbmc/filesystem/AddonsDirectory.cpp
+++ b/xbmc/filesystem/AddonsDirectory.cpp
@@ -441,7 +441,7 @@ static void UserInstalledAddons(const CURL& path, CFileItemList &items)
VECADDONS addons;
CServiceBroker::GetAddonMgr().GetInstalledAddons(addons);
addons.erase(std::remove_if(addons.begin(), addons.end(),
- [](const AddonPtr& addon) { return !IsUserInstalled(addon); }));
+ [](const AddonPtr& addon) { return !IsUserInstalled(addon); }), addons.end());
if (addons.empty())
return;