summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Aguirre <aguirre.nicolas@gmail.com>2015-02-05 18:29:56 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-12 07:43:58 +0100
commit3c14cab0c676e349a9f1f01e9aadd2a2aec546b5 (patch)
tree89f2344635992412308f32fe0816d1626aa2482f
parent6e193e2006c376b6c48991a67ddd0cb3bd9bfa10 (diff)
evas: free EvasGlView when the evas is freed in gl_cocoa backend.
EvasGLView is now correctly freed when the Evas is destroyed Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/modules/evas/engines/gl_cocoa/evas_gl_cocoa_main.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/evas/engines/gl_cocoa/evas_gl_cocoa_main.m b/src/modules/evas/engines/gl_cocoa/evas_gl_cocoa_main.m
index 22eecf9c4e..256bd66d1b 100644
--- a/src/modules/evas/engines/gl_cocoa/evas_gl_cocoa_main.m
+++ b/src/modules/evas/engines/gl_cocoa/evas_gl_cocoa_main.m
@@ -93,9 +93,12 @@ eng_window_new(void *window,
93void 93void
94eng_window_free(Evas_GL_Cocoa_Window *gw) 94eng_window_free(Evas_GL_Cocoa_Window *gw)
95{ 95{
96 if (gw == _evas_gl_cocoa_window) _evas_gl_cocoa_window = NULL; 96 if (gw == _evas_gl_cocoa_window)
97 _evas_gl_cocoa_window = NULL;
98
97 evas_gl_common_context_free(gw->gl_context); 99 evas_gl_common_context_free(gw->gl_context);
98 free(gw); 100 [(EvasGLView*)gw->view release];
101 free(gw);
99} 102}
100 103
101void 104void