aaah yes. get the ref -1 as free will dec it.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 29 Jul 2010 23:32:56 +0000 (23:32 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 29 Jul 2010 23:32:56 +0000 (23:32 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@50662 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/engines/gl_x11/evas_x_main.c

index 02cceb9..c113890 100644 (file)
@@ -401,7 +401,7 @@ eng_window_free(Evas_GL_X11_Window *gw)
    if (gw == _evas_gl_x11_window) _evas_gl_x11_window = NULL;
    if (gw->gl_context)
       {
-         ref = gw->gl_context->references;
+         ref = gw->gl_context->references - 1;
          evas_gl_common_context_free(gw->gl_context);
       }
 #if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)