SDL_DestroyWindow was causing segfault