1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added flag JUCE_STRICT_REFCOUNTEDPOINTER which is recommended to avoid accidental leaks when using ref-counted pointers. Enabled this flag in the demo projects, and used it to help tidy up some dubious smart-pointer use

This commit is contained in:
jules 2018-06-26 14:06:52 +01:00
parent f80df37183
commit 49aa9c9db4
42 changed files with 345 additions and 209 deletions

View file

@ -152,7 +152,7 @@ PluginWindow* FilterGraph::getOrCreateWindowFor (AudioProcessorGraph::Node* node
closeAnyOpenPluginWindows();
#else
for (auto* w : activePluginWindows)
if (w->node == node && w->type == type)
if (w->node.get() == node && w->type == type)
return w;
#endif