Prevent leak of HXColor object

#if/#else block will allocate memory for one in either case, the alloc/init-ed object will be discarded and on completion of the method, it will have a retain count of +1 and there will be no references to it.