objective c - gluNewQuadric leaking memory -



objective c - gluNewQuadric leaking memory -

when checked application leak instruments (x-code tool, programme in objective-c), saw #living "malloc 48 bytes" allocations growing bigger , bigger. also, instruments leaks there. if check responsible caller, says "glunewquadric". checked net bit , found people having same complaints, not many, , found no working solution. put

glutinit(&argc, argv);

in "main.m", , increment of #living seems have gone downwards bit, still growing persistently. place utilize glu

glutsolidsphere glutwiresphere

any suggestions on how prepare this?

here's pro-tipp: don't utilize glut rendering primitives. there quick testing , not meant serious bussines. few weeks ago posted 2 lengthy answers on how draw sphere using pure opengl without resorting glu or glut:

how create 3d sphere in opengl using visual c++

how animate solid sphere on curve

objective-c opengl memory-leaks glut

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -