diff src/graph_engine_openvg.c @ 591:71df2896877c openvg

build graph_engine_openvg.c in makefile
author Thinker K.F. Li <thinker@branda.to>
date Wed, 30 Jun 2010 19:45:20 +0800
parents b714f0c9992e
children de9d210e9c38
line wrap: on
line diff
--- a/src/graph_engine_openvg.c	Wed Jun 30 19:30:32 2010 +0800
+++ b/src/graph_engine_openvg.c	Wed Jun 30 19:45:20 2010 +0800
@@ -221,7 +221,7 @@
     
     mbe_surface = (mbe_surface_t *)malloc(sizeof(mbe_surface_t));
     if(mbe_surface == NULL) {
-	eglDestroySurface(surface);
+	eglDestroySurface(display, surface);
 	return NULL;
     }
     mbe_surface->surface = surface;
@@ -274,6 +274,6 @@
     
     vgDestroyPath(canvas->path);
     eglDestroyContext(display, canvas->ctx);
-    canvas->tgt->asso_mbe = NULL;
-    free(ctx);
+    canvas->tgt->asso_mbe = NULL; /* remove association */
+    free(canvas);
 }