summaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2010-03-21 14:13:02 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2010-03-21 14:13:02 -0500
commit28695489e392e2bd34cf4ccf8611d431808e084c (patch)
tree8edbda8b30cb4bbbd4636c1c9dbb8c6ecead181a /sdl.c
parent365c4243ecdd0eb2372ce4a5bb20ded77c755c1d (diff)
downloadqemu-28695489e392e2bd34cf4ccf8611d431808e084c.tar.gz
Revert "Convert atexit users to exit_notifier"
This reverts commit d7234f4d7e373a708e1df9ab565a71b71b189025. Conflicts: hw/xen_machine_pv.c This should have never been committed. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sdl.c b/sdl.c
index 8dc78cd959..16a48e92cb 100644
--- a/sdl.c
+++ b/sdl.c
@@ -827,7 +827,7 @@ static void sdl_mouse_define(int width, int height, int bpp,
SDL_SetCursor(guest_sprite);
}
-static void sdl_cleanup(Notifier *notifier)
+static void sdl_cleanup(void)
{
if (guest_sprite)
SDL_FreeCursor(guest_sprite);
@@ -840,7 +840,6 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame)
uint8_t data = 0;
DisplayAllocator *da;
const SDL_VideoInfo *vi;
- static Notifier exit_notifier = { .notify = sdl_cleanup };
#if defined(__APPLE__)
/* always use generic keymaps */
@@ -893,7 +892,7 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame)
sdl_cursor_hidden = SDL_CreateCursor(&data, &data, 8, 1, 0, 0);
sdl_cursor_normal = SDL_GetCursor();
- exit_notifier_add(&exit_notifier);
+ atexit(sdl_cleanup);
if (full_screen) {
gui_fullscreen = 1;
gui_fullscreen_initial_grab = 1;