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>
This commit is contained in:
Nicolas Aguirre 2015-02-05 18:29:56 +01:00 committed by Cedric BAIL
parent 6e193e2006
commit 3c14cab0c6
1 changed files with 5 additions and 2 deletions

View File

@ -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