From c3cb5e26a9e6ac46a699fc0efdfbae74797897b8 Mon Sep 17 00:00:00 2001 From: ellson Date: Fri, 2 Apr 2010 18:06:39 +0000 Subject: [PATCH] fix for #1804 and #1846 from: Andrew Moss --- macosx/GVGraph.m | 4 ++++ 1 file changed, 4 insertions(+) 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 { -- 2.50.1