hello triangle memory leak

There appears to be a memory leak in the render loop of Apple's Hello Triangle sample code. Does anybody know how to fix it?

Replies

What makes you say that there is a leak in the render loop? I ran Allocations on the iOS and macOS version of this sample and did not see any memory growth.

I simply noted that the memory footprint shown in the XCode debugger slowly ticks up as the app runs to the tune of 3 or 4 MB a minute. I left an app I am working on run this evening while I watched my Cardinals defeat the vile Cubs. After the game the memory usage was up to 154 MB from 38 MB at launch. However, it seems to have leveled off at 154 MB. You're probably right. It's not a real memory leak and this is normal behavior.