[SDL] Mouse Input + Delay problem

Justin Coleman jmcoleman at gmail.com
Mon Apr 7 10:57:15 PDT 2008


You're using a lot of operator new and I don't see any deletes to
accompany them. Your program seems to be allocating new memory for
everything each frame. Try checking whether the pointer is valid
first, and only new it if it's null.

-J


More information about the SDL mailing list