From: erg Date: Wed, 24 Jun 2009 22:05:56 +0000 (+0000) Subject: Check for no input files at cleanup time. X-Git-Tag: LAST_LIBGRAPH~32^2~1880 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9e1bb7a4c05407e1cb5057726820875a940f363;p=graphviz Check for no input files at cleanup time. --- diff --git a/lib/gvpr/gvpr.c b/lib/gvpr/gvpr.c index 280a93931..d89fed5af 100644 --- a/lib/gvpr/gvpr.c +++ b/lib/gvpr/gvpr.c @@ -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) {