]> granicus.if.org Git - graphviz/commitdiff
put back final call to gvrender_end_job()
authorellson <devnull@localhost>
Mon, 26 Jun 2006 18:02:22 +0000 (18:02 +0000)
committerellson <devnull@localhost>
Mon, 26 Jun 2006 18:02:22 +0000 (18:02 +0000)
lib/common/emit.c
lib/gvc/gvcontext.c

index f06a46c833b4589fa843fe20e3cdcd8768ff0f1e..ad080da506255dfd570af8163bdd6da7c4a51f57 100644 (file)
@@ -1855,6 +1855,7 @@ int gvRenderJobs (GVC_t * gvc, graph_t * g)
        /* if we already have an active job list to a different output device */
         if ((active_job = gvc->active_jobs)
        && strcmp(job->output_langname,gvc->active_jobs->output_langname) != 0) {
+           gvrender_end_job(active_job);
             gvdevice_finalize(gvc); /* finalize previous jobs */
            
             gvc->active_jobs = NULL; /* clear active list */
index 18ce4ca5834c09d38e06f272cc87f20207110f97..bfcc1c0b5a7a14243a0a9fc494175c87c7bad1e3 100644 (file)
@@ -62,8 +62,10 @@ int gvFreeContext(GVC_t * gvc)
 {
     GVG_t *gvg, *gvg_next;
 
-    if (gvc->active_jobs)
+    if (gvc->active_jobs) {
+       gvrender_end_job(gvc->active_jobs);
        gvdevice_finalize(gvc);
+    }
     emit_once_reset();
     gvg_next = gvc->gvgs;
     while ((gvg = gvg_next)) {