Fix small SDL memory issue
Merge pull request #306 from NickMcConnell/sdlfix

Fix small SDL memory issue