Projects > cpp > Issues > Bug #3002

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Memory leak getDisplayName()

Bug #3002 [Closed]
CookieMonster 2013-10-18 05:42 . Updated over 9 years ago

Two leaks are reported after allocating memory with a malloc call right after application loads, one is 32 bytes other is 48 bytes. Occurs on develop and master versions of library.

Here is the call stack:
0 libsystem_c.dylib malloc_zone_malloc
1 libsystem_c.dylib malloc
2 Test cpp Mac getDisplayName
3 Test cpp Mac _glfwPlatformGetMonitors
4 Test cpp Mac glfwInit
5 Test cpp Mac cocos2d::EGLView::EGLView() /cocos2d-x-develop/cocos/2d/platform/mac/
6 Test cpp Mac cocos2d::EGLView::EGLView() /cocos2d-x-develop/cocos/2d/platform/mac/
7 Test cpp Mac main /cocos2d-x-develop/samples/Cpp/TestCpp/proj.mac/main.cpp:33
8 libdyld.dylib start 2014-10-08 02:48

Redmine issue system is closed, we are using github issue system instead.

This issue was moved to

Atom PDF

Start date:2013-10-18
Due date:
% Done:


Target version:-