]> granicus.if.org Git - graphviz/commitdiff
fix for #1804 and #1846 from: Andrew Moss <andrewmoss@gmail.com>
authorellson <devnull@localhost>
Fri, 2 Apr 2010 18:06:39 +0000 (18:06 +0000)
committerellson <devnull@localhost>
Fri, 2 Apr 2010 18:06:39 +0000 (18:06 +0000)
macosx/GVGraph.m

index 9c1005cf563755fe89101d23d76ad043a11ccad6..beb45f34c298892739eb9647090a9b1cedb5b8b9 100644 (file)
@@ -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 {