Fixed memory leak

There was a memory leak reported by visual leak debugger that I fixed.

Signed-off-by: Joe Riedel <joer@sunsidegames.com>