fix: Properly clean up plugin features

This commit is contained in:
WerWolv
2025-08-10 22:45:50 +02:00
parent 3616c3ad7b
commit 75e73ddcd9

View File

@@ -45,7 +45,7 @@ void* PluginSubCommandsFunctionHelper<T>::getSubCommands() {
}
[[maybe_unused]] static auto& getFeaturesImpl() {
static std::vector<hex::Feature> features;
static hex::AutoReset<std::vector<hex::Feature>> features;
return features;
}