forked from enlightenment/efl
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:
parent
6e193e2006
commit
3c14cab0c6
|
@ -93,9 +93,12 @@ eng_window_new(void *window,
|
||||||
void
|
void
|
||||||
eng_window_free(Evas_GL_Cocoa_Window *gw)
|
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);
|
evas_gl_common_context_free(gw->gl_context);
|
||||||
free(gw);
|
[(EvasGLView*)gw->view release];
|
||||||
|
free(gw);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue