From: ellson Date: Fri, 2 Apr 2010 18:06:39 +0000 (+0000) Subject: fix for #1804 and #1846 from: Andrew Moss X-Git-Tag: LAST_LIBGRAPH~32^2~1371 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3cb5e26a9e6ac46a699fc0efdfbae74797897b8;p=graphviz fix for #1804 and #1846 from: Andrew Moss --- diff --git a/macosx/GVGraph.m b/macosx/GVGraph.m index 9c1005cf5..beb45f34c 100644 --- a/macosx/GVGraph.m +++ b/macosx/GVGraph.m @@ -74,6 +74,10 @@ extern char *gvplugin_list(GVC_t * gvc, api_t api, const char *str); } _graph = agread(file); + if (!_graph) { + [self autorelease]; + return nil; + } fclose(file); } else {