evas: free EvasGlView when the evas is freed in gl_cocoa backend.
authorNicolas Aguirre <aguirre.nicolas@gmail.com>
Thu, 5 Feb 2015 17:29:56 +0000 (18:29 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Thu, 12 Mar 2015 06:43:58 +0000 (07:43 +0100)
EvasGLView is now correctly freed when the Evas is destroyed

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/modules/evas/engines/gl_cocoa/evas_gl_cocoa_main.m

index 22eecf9..256bd66 100644 (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