fadeOutComponent possible memory leak


#1
Detected memory leaks!
Dumping objects ->
c:\devel\juce\src\gui\graphics\imaging\juce_image.cpp(71) : {56980} normal block at 0x03B9DE20, 13312 bytes long.
 Data: <                > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
c:\devel\juce\src\gui\graphics\imaging\juce_image.h(260) : {56979} normal block at 0x03B31BA8, 28 bytes long.
 Data: <,       h       > 2C 13 D2 00 01 00 00 00 68 00 00 00 20 00 00 00 
c:\devel\juce\src\gui\components\juce_component.cpp(382) : {56978} normal block at 0x02213240, 156 bytes long.
 Data: <|M  lM          > 7C 4D D1 00 6C 4D D1 00 C0 F5 D8 00 00 00 00 00 
c:\devel\juce\src\gui\components\mouse\juce_mousecursor.cpp(108) : {174} normal block at 0x01E999C0, 16 bytes long.
 Data: <                > 05 00 01 00 01 00 00 00 01 00 00 00 01 CD CD CD 
Object dump complete.

if i close my app while a component is fading out, it leaks memory like that (in this case it’a label).

if the component is not fading there are no leaks. should i wait for the fade to end, or can i explicitly delete the special component used for the fade effect?


#2

I don’t think it deletes the component that’s being faded out, it deletes the proxy component…

Component Class Reference:


#3

I wouldn’t worry about it. Leaks are never to be encouraged, but in this case leaking the temporary fade-out component won’t do any harm at all.


#4

i delete the component anyway, but that’s not the problem.

i think the component created by juce is left in memory. i know it’s not much, i wont worry about it. i just thought i’d mention this, i’m using juce’s memory leak check and i liek it when none occur.