]> granicus.if.org Git - graphviz/commitdiff
Ag_dictop_G has to be reset to 0 after user.
authornorth <devnull@localhost>
Thu, 8 Nov 2007 20:32:25 +0000 (20:32 +0000)
committernorth <devnull@localhost>
Thu, 8 Nov 2007 20:32:25 +0000 (20:32 +0000)
lib/cgraph/utils.c

index da2a50bdb442e59540dd0681acb33c7c7fa9d872..af497b6bfe39cedc58336b2d61afd177289f1f08 100644 (file)
@@ -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)