I have a bunch of lines like this on my app
UIColor *myColor = [UIColor colorWithRed:corR green:corG blue:corB alpha:1.0];
Instruments are
Don't release the object, you don't own it and you will eventually get crashes. UIColor is probably just caching these colors for you, and Instruments has no way of knowing this so it reports them as leaks (basically stuff that got created and you don't have a reference to anymore but hasn't been deallocated).
Try running instruments for some time (using the simulator) and then sending a memory warning to see if UIColor will purge its cache. Either way, there isn't anything you can really do to fix leaks happening inside core frameworks, so don't try. Just make sure you're not actually leaking them somehow (like retaining them at some point and never releasing them).
If that's all you are doing, myColor
is most definitely not leaking. If you are retaining that object anywhere else without releasing it, it is leaking.
Never release an object that you don't remember retaining. Evvarrrrrrrrr. But I suspect that you just are retaining it somewhere, and don't even notice it.
Sometimes the simulator can report leaks when there are none, make sure to also see if you get the same leak on the device as well...
But since it's faster to work with the simulator, try finding things there first.