]> granicus.if.org Git - graphviz/commitdiff
Check for no input files at cleanup time.
authorerg <devnull@localhost>
Wed, 24 Jun 2009 22:05:56 +0000 (22:05 +0000)
committererg <devnull@localhost>
Wed, 24 Jun 2009 22:05:56 +0000 (22:05 +0000)
lib/gvpr/gvpr.c

index 280a93931ba40e15ba8dd6a57c8bc859cac07fda..d89fed5afeddb94b7b44ba654ff998608b97d804 100644 (file)
@@ -961,7 +961,7 @@ int gvpr (int argc, char *argv[], gvpropts * uopts)
     freeParseProg (prog);
     freeCompileProg (xprog);
     closeGPRState(state);
-    closeIngraph (ing);
+    if (ing) closeIngraph (ing);
     freeOpts (opts);
 
     if (uopts) {