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 about 2 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/CCEGLView.mm:277
6 Test cpp Mac cocos2d::EGLView::EGLView() /cocos2d-x-develop/cocos/2d/platform/mac/CCEGLView.mm:278
7 Test cpp Mac main /cocos2d-x-develop/samples/Cpp/TestCpp/proj.mac/main.cpp:33
8 libdyld.dylib start

walzer@cocos2d-x.org 2014-10-08 02:48

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

This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8233

Atom PDF

Status:Closed
Start date:2013-10-18
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:-
Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.