]> granicus.if.org Git - graphviz/commitdiff
restore dot.c
authorellson <devnull@localhost>
Wed, 18 Feb 2009 21:18:23 +0000 (21:18 +0000)
committerellson <devnull@localhost>
Wed, 18 Feb 2009 21:18:23 +0000 (21:18 +0000)
cmd/dot/dot.c

index edf59b2b3cab2cf80286e7269d6ddb8331978ff6..79a05aae700d0086b0977eabe21772ceb448590f 100644 (file)
@@ -208,13 +208,10 @@ int main(int argc, char **argv)
            gvFreeLayout(Gvc, G);
        }
     }
-    else if ((G = gvPluginsGraph(Gvc)))
-       {
-               int a=1;
-               a=a+1;
-               printf ("twetwtert\n");
-               gvLayoutJobs(Gvc, G);  /* take layout engine from command line */
+    else if ((G = gvPluginsGraph(Gvc))) {
+           gvLayoutJobs(Gvc, G);  /* take layout engine from command line */
            gvRenderJobs(Gvc, G);
+           gvFreeLayout(Gvc, G);
     }
     else {
        while ((G = gvNextInputGraph(Gvc))) {