SDL2: Fix memory corruption potential

* Simplify code, no more mallocs ever frame