Leaks


#1

Hi Jules,

I’m checking for leaks in my code and doing this I’ve found one in juce on mac.

In juce_mac_windowing, in MacBitmapImage ctor, you’re not releasing
the CMProfileRef, you should call CMCloseProfile on it.

I might post more report as I’m only beginning :smiley:

Thanks,


#2

ah - nice one, thanks. What tool are you using?


#3

the good old Malloc Debug which you can launch using the Debug > Launch Using Performance Tool > Malloc Debug in Xcode.

In Malloc Debug, you can then switch the 2nd combo to leaks.

Have fun.


#4

I never used to be able to get that to work, but that was years ago - I should have another go with it now I’ve got xcode 3.


#5

Well I’m even using only Xcode 2.4.