Revision 28695489 sdl.c

b/sdl.c
827 827
        SDL_SetCursor(guest_sprite);
828 828
}
829 829

  
830
static void sdl_cleanup(Notifier *notifier)
830
static void sdl_cleanup(void)
831 831
{
832 832
    if (guest_sprite)
833 833
        SDL_FreeCursor(guest_sprite);
......
840 840
    uint8_t data = 0;
841 841
    DisplayAllocator *da;
842 842
    const SDL_VideoInfo *vi;
843
    static Notifier exit_notifier = { .notify = sdl_cleanup };
844 843

  
845 844
#if defined(__APPLE__)
846 845
    /* always use generic keymaps */
......
893 892
    sdl_cursor_hidden = SDL_CreateCursor(&data, &data, 8, 1, 0, 0);
894 893
    sdl_cursor_normal = SDL_GetCursor();
895 894

  
896
    exit_notifier_add(&exit_notifier);
895
    atexit(sdl_cleanup);
897 896
    if (full_screen) {
898 897
        gui_fullscreen = 1;
899 898
        gui_fullscreen_initial_grab = 1;

Also available in: Unified diff