summaryrefslogtreecommitdiff
path: root/legacy/evas/src/modules/engines/gl_sdl/evas_engine.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2012-07-06 08:16:03 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-07-06 08:16:03 +0000
commite468bdd3913c354437fb536d28946763ee31a107 (patch)
tree78a613e98c201d19bf2d393fdf8b7b35ecac7d03 /legacy/evas/src/modules/engines/gl_sdl/evas_engine.c
parented473fb3cad7ba03a4ad0bb82279693f4a8b3323 (diff)
evas, ecore: fix crash when sdl doesn't init properly.
SVN revision: 73400
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/modules/engines/gl_sdl/evas_engine.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/legacy/evas/src/modules/engines/gl_sdl/evas_engine.c b/legacy/evas/src/modules/engines/gl_sdl/evas_engine.c
index 149eab01c7..f822f3a4f0 100644
--- a/legacy/evas/src/modules/engines/gl_sdl/evas_engine.c
+++ b/legacy/evas/src/modules/engines/gl_sdl/evas_engine.c
@@ -63,13 +63,17 @@ eng_output_free(void *data)
63 Render_Engine *re; 63 Render_Engine *re;
64 64
65 re = (Render_Engine *)data; 65 re = (Render_Engine *)data;
66 evas_gl_common_context_free(re->gl_context);
67 free(re);
68 66
69 evas_common_font_shutdown(); 67 if (re)
70 evas_common_image_shutdown(); 68 {
69 evas_gl_common_context_free(re->gl_context);
70 free(re);
71
72 evas_common_font_shutdown();
73 evas_common_image_shutdown();
71 74
72 SDL_QuitSubSystem(SDL_INIT_VIDEO); 75 SDL_QuitSubSystem(SDL_INIT_VIDEO);
76 }
73} 77}
74 78
75static void 79static void