From 9b91362e87bad6a8a9f40522a28632c151e66453 Mon Sep 17 00:00:00 2001 From: ellson Date: Mon, 26 Jun 2006 18:02:22 +0000 Subject: [PATCH] put back final call to gvrender_end_job() --- lib/common/emit.c | 1 + lib/gvc/gvcontext.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/common/emit.c b/lib/common/emit.c index f06a46c83..ad080da50 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -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 */ diff --git a/lib/gvc/gvcontext.c b/lib/gvc/gvcontext.c index 18ce4ca58..bfcc1c0b5 100644 --- a/lib/gvc/gvcontext.c +++ b/lib/gvc/gvcontext.c @@ -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)) { -- 2.40.0