Evas (wayland_egl): Set resource_list to NULL after we free it. Fix
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 24 Jul 2012 09:19:23 +0000 (09:19 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 24 Jul 2012 09:19:23 +0000 (09:19 +0000)
minor formatting issue.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@74348 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/engines/wayland_egl/evas_engine.c

index 833a6c9..588174d 100644 (file)
@@ -587,6 +587,7 @@ _destroy_internal_glue_resources(void *data)
         free(rsc);
      }
    eina_list_free(resource_list);
+   resource_list = NULL;
    LKU(resource_lock);
 
    // Destroy TLS
@@ -2284,7 +2285,7 @@ eng_gl_context_destroy(void *data, void *context)
 
    // 2. Delete the FBO
    if (ctx->context_fbo)
-        glDeleteFramebuffers(1, &ctx->context_fbo);
+     glDeleteFramebuffers(1, &ctx->context_fbo);
 
    // 3. Destroy the Context
    eglDestroyContext(re->win->egl_disp, ctx->context);