i’m using some code that in short looks like this
in the changeMessageSource
event *ev = new event() sendChangeMessage(ev);
and in the Listener
use(ev); deleteAndZero (ev);
is this ok ? cause i’m getting memory leaks from the ev pointer (i used the WATCHer in VC and ev has the same memory adress as the reported leaked memory by juce).
what other way is to send short messages between classes, i can’t think of anything, and this is a single thread (a VST plugin), no new threads are started (not by my code anyway).