Browse Source

Fixed a potential crash in KnownPluginList::removeType()

tags/2021-05-28
ed 6 years ago
parent
commit
b745ed9bd9
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      modules/juce_audio_processors/scanning/juce_KnownPluginList.cpp

+ 3
- 3
modules/juce_audio_processors/scanning/juce_KnownPluginList.cpp View File

@@ -105,9 +105,9 @@ void KnownPluginList::removeType (const PluginDescription& type)
{ {
ScopedLock lock (typesArrayLock); ScopedLock lock (typesArrayLock);
for (auto& desc : types)
if (desc.isDuplicateOf (type))
types.remove (&desc);
for (int i = types.size(); --i >= 0;)
if (types.getUnchecked (i).isDuplicateOf (type))
types.remove (i);
} }
sendChangeMessage(); sendChangeMessage();


Loading…
Cancel
Save