cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=3c14cab0c676e349a9f1f01e9aadd2a2aec546b5
commit 3c14cab0c676e349a9f1f01e9aadd2a2aec546b5 Author: Nicolas Aguirre <[email protected]> Date: Thu Feb 5 18:29:56 2015 +0100 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 <[email protected]> --- src/modules/evas/engines/gl_cocoa/evas_gl_cocoa_main.m | 7 +++++-- 1 file 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 22eecf9..256bd66 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, void eng_window_free(Evas_GL_Cocoa_Window *gw) { - if (gw == _evas_gl_cocoa_window) _evas_gl_cocoa_window = NULL; + if (gw == _evas_gl_cocoa_window) + _evas_gl_cocoa_window = NULL; + evas_gl_common_context_free(gw->gl_context); - free(gw); + [(EvasGLView*)gw->view release]; + free(gw); } void --
