]> granicus.if.org Git - graphviz/commitdiff
encapsulate gvdevice_* calls into gvrender functions
authorellson <devnull@localhost>
Fri, 2 Nov 2007 20:30:28 +0000 (20:30 +0000)
committerellson <devnull@localhost>
Fri, 2 Nov 2007 20:30:28 +0000 (20:30 +0000)
lib/gvc/gvcontext.c

index b4f38da0b204a0e124455425796ce27627e0b059..a892dab9aeedbb4312ee0e8381d4989db2c55cd1 100644 (file)
@@ -57,12 +57,9 @@ GVC_t *gvNEWcontext(char **info, char *user)
 int gvFreeContext(GVC_t * gvc)
 {
     GVG_t *gvg, *gvg_next;
-    GVJ_t *firstjob;
 
-    if ((firstjob = gvc->active_jobs)) {
-       gvrender_end_job(firstjob);
-       gvdevice_finalize(firstjob);
-    }
+    if (gvc->active_jobs)
+       gvrender_end_job(gvc->active_jobs);
     emit_once_reset();
     gvg_next = gvc->gvgs;
     while ((gvg = gvg_next)) {