]> granicus.if.org Git - graphviz/commitdiff
Fix stupid error introduced to avoid closing a single graph
authorerg <devnull@localhost>
Wed, 3 Mar 2010 22:22:42 +0000 (22:22 +0000)
committererg <devnull@localhost>
Wed, 3 Mar 2010 22:22:42 +0000 (22:22 +0000)
cmd/tools/gc.c

index a6b0996a128584abbd21f76e1c5f307ec6c49da1..849737c9f7cfe9d3a9554aab2bf0e2b26b55e096 100644 (file)
@@ -369,7 +369,7 @@ int main(int argc, char *argv[])
 
     while ((g = nextGraph(&ig)) != 0) {
        if (prev)
-           agclose(g);
+           agclose(prev);
        prev = g;
        fname = fileName(&ig);
        if (verbose)