I’m developing in cocos2d-x targeting iOS and am using the C11 dialect of C. Since I am already familiar with C++11 standard library smart pointers, std::unique_ptr and std::shared_ptr, I would like to use these smart pointers to manage memory in my application.
Will the cocos2d-x framework work correctly if I do not call pSomeCocos2dxObject~~>autorelease on my objects when I allocate them?
The standard cocos2d-x macro CREATE_FUNC helps declare a create member function that does two things:
(2) Calls pSomeCocos2dxObject->autorelease()
So I understand I will need to do (1) myself. But if I don’t do (2) will that break things elsewhere in the framework?