I have a Component with three ImageButton in it.
The images come from an ImageCache.
In my destructor, I put
but Juce reports a memory leak.
If I delete the buttons in my destructor
removeAllChildren(); deleteAndZero(buttonStop); deleteAndZero(buttonPlay1x); deleteAndZero(buttonPlay2x);
I don’t have any more memory leak.
Why am I forced to delete the buttons ? Isn’t it what removeAllChildren is supposed to do ?
I have another component with a slider and I don’t have to delete it using deleteAndZero, removeAllChildren handles this task.
Can you explain me ?