Heap allocation of cplx & delete in main app