# HG changeset patch # User Thinker K.F. Li # Date 1277898320 -28800 # Node ID 71df2896877c3aa357e096aac9099b7b76eae049 # Parent b714f0c9992eed19e019b28f0f69507d724f9b54 build graph_engine_openvg.c in makefile diff -r b714f0c9992e -r 71df2896877c src/Makefile.am --- a/src/Makefile.am Wed Jun 30 19:30:32 2010 +0800 +++ b/src/Makefile.am Wed Jun 30 19:45:20 2010 +0800 @@ -47,6 +47,10 @@ libmbfly_la_SOURCES += graph_engine_skia.cpp endif +if OPENVG_GRAPH_ENGINE +libmbfly_la_SOURCES += graph_engine_openvg.c +endif + X_main_SOURCES = X_main.c X_main_LDADD = $(top_builddir)/src/libmbfly.la X_main_CPPFLAGS = @pangocairo_CFLAGS@ -I$(top_builddir)/include diff -r b714f0c9992e -r 71df2896877c src/graph_engine_openvg.c --- 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); }