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

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -