# Default JUCE AudioPluginHost memory leaks on exit: 2 Message Instances and 1 Attribute List

**URL:** <https://forum.juce.com/t/default-juce-audiopluginhost-memory-leaks-on-exit-2-message-instances-and-1-attribute-list/34631>\
**Category:** Audio Plugins\
**Created:** [August 2, 2019, 2:40pm UTC](https://forum.juce.com/t/default-juce-audiopluginhost-memory-leaks-on-exit-2-message-instances-and-1-attribute-list/34631 "2019-08-02T14:40:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rarrar](https://avatars.discourse-cdn.com/v4/letter/r/65b543/32.png) [@rarrar](https://forum.juce.com/u/rarrar)\
**Post date:** [August 2, 2019, 2:40pm UTC](https://forum.juce.com/t/default-juce-audiopluginhost-memory-leaks-on-exit-2-message-instances-and-1-attribute-list/34631/1 "2019-08-02T14:40:05Z")

</div>

When I close the JUCE AudioPluginHost in debug mode, it shows the following errors:

```
*** Leaked objects detected: 2 instance(s) of class Message
JUCE Assertion failure in juce_leakedobjectdetector.h:90
AudioPluginHost.exe has triggered a breakpoint.
*** Leaked objects detected: 1 instance(s) of class AttributeList
JUCE Assertion failure in juce_leakedobjectdetector.h:90
AudioPluginHost.exe has triggered a breakpoint.

```

And the same happens when I build a vstplugin in debug mode using the AudioPluginHost exe. How can you remove these errors? And also, is there a way to know which line of code contains the pointer which caused the memory leak as atm I don’t know anyway to debug this problem on my own.

---

<div class="post-metadata">

**Author:** ![ToneCre8](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@ToneCre8](https://forum.juce.com/u/ToneCre8)\
**Post date:** [September 14, 2020, 3:56pm UTC](https://forum.juce.com/t/default-juce-audiopluginhost-memory-leaks-on-exit-2-message-instances-and-1-attribute-list/34631/2 "2020-09-14T15:56:44Z")

</div>

I’m searching all over the forum for answers to these questions. And there never seems to be one.
