SDL, mouse and a locked up machine


I have a weird problem here.

I’m developing an aplication using SDL on X but the idea is to run on
console via fbdev.
I compile and run the aplication on a X window perfectly but when I try
it on a consile, I get a mouse cursor and the system completly freezes
once it tries to finish. Looks like it freezes on the SDL_Free, I’m not
100% sure about it tough.
How do I disable this mouse cursor?