TIZEN: Free SDL surfaces at exit.
authorEvgeny Voevodin <e.voevodin@samsung.com>
Wed, 11 Jul 2012 09:49:56 +0000 (13:49 +0400)
committerEvgeny Voevodin <e.voevodin@samsung.com>
Fri, 13 Jul 2012 05:28:00 +0000 (09:28 +0400)
Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
tizen/src/emulator.c
tizen/src/maru_sdl.c
tizen/src/maru_sdl.h

index e75b91e682d27151840d02daae79e9ccfda3fc20..dd33d2cf14ba9be16d9220d32072d847bcfbd7b7 100644 (file)
@@ -80,6 +80,8 @@ static char** skin_argv = NULL;
 static int qemu_argc = 0;
 static char** qemu_argv = NULL;
 
+extern void maruskin_sdl_free(void);
+
 void exit_emulator(void)
 {
     cleanup_multi_touch_state();
@@ -88,6 +90,7 @@ void exit_emulator(void)
     shutdown_skin_server();
     shutdown_guest_server();
 
+    maruskin_sdl_free();
     SDL_Quit();
 }
 
index 0d810299b0d206641f14c51e5461aea140bd8bce..91720a08a68ef4e97a2dcfc2567b6136a0830f54 100644 (file)
@@ -379,6 +379,12 @@ void maruskin_sdl_resize(void)
     SDL_PushEvent(&ev);
 }
 
+void maruskin_sdl_free(void)
+{
+    SDL_FreeSurface(surface_screen);
+    SDL_FreeSurface(surface_qemu);
+}
+
 DisplaySurface* get_qemu_display_surface( void ) {
     return qemu_display_surface;
 }
index 9b6ef1580748aa8ffc6343161969eb9807ec7182..5221e8ec4ce0e88ff56041bcba7ee6f9215bf1d7 100644 (file)
@@ -49,6 +49,7 @@
 void maruskin_display_init(DisplayState *ds);
 void maruskin_sdl_init(uint64 swt_handle, int lcd_size_width, int lcd_size_height);
 void maruskin_sdl_resize(void);
+void maruskin_sdl_free(void);
 
 DisplaySurface* get_qemu_display_surface( void );