Forums » C++ Framework » [v1] small fix for director deallocation »
| JP Sarda | [v1] small fix for director deallocation | ||
|---|---|---|---|
|
As I'm running cocos2d-x into a uikit view, I have to create/end the director quite often. The CCDirectorCaller was not correctly deallocated when calling director->end(), here is a quick fix. It seems that you need to invalidate the displayLink in order to release the CCDirectorCaller. In CCdirectorCaller.mm, cocos2d-x Before fix +(void) destroy { After fix +(void) destroy { |
||
| Dominic Xue | RE: [v1] small fix for director deallocation | ||
|
Added by Dominic Xue 8 months ago
ha |
(1-1/1)