From: north Date: Thu, 8 Nov 2007 20:32:25 +0000 (+0000) Subject: Ag_dictop_G has to be reset to 0 after user. X-Git-Tag: LAST_LIBGRAPH~32^2~5051 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0dd5d2c7d971d7acd5af444b799b906ba2c0a29;p=graphviz Ag_dictop_G has to be reset to 0 after user. --- diff --git a/lib/cgraph/utils.c b/lib/cgraph/utils.c index da2a50bdb..af497b6bf 100644 --- a/lib/cgraph/utils.c +++ b/lib/cgraph/utils.c @@ -63,6 +63,7 @@ Dict_t *agdtopen(Agraph_t * g, Dtdisc_t * disc, Dtmethod_t * method) Ag_dictop_G = g; d = dtopen(disc, method); disc->memoryf = memf; + Ag_dictop_G = NIL(Agraph_t*); return d; } @@ -90,6 +91,7 @@ void agdtclose(Agraph_t * g, Dict_t * dict) if (dtclose(dict)) abort(); disc->memoryf = memf; + Ag_dictop_G = NIL(Agraph_t*); } void agdtdisc(Agraph_t * g, Dict_t * dict, Dtdisc_t * disc)