#undef HAVE_CONFIG_H
#include <gvc.h>
static GVC_t
- *graphic_context;
+ *graphic_context = (GVC_t *) NULL;
#endif
\f
#if defined(MAGICKCORE_GVC_DELEGATE)
return ((Image *) NULL);
}
option=GetImageOption(image_info,"dot:layout-engine");
+ assert(graphic_context != (GVC_t *) NULL);
if (option == (const char *) NULL)
gvLayout(graphic_context,graph,(char *) "dot");
else
(void) UnregisterMagickInfo("DOT");
#if defined(MAGICKCORE_GVC_DELEGATE)
gvFreeContext(graphic_context);
+ graphic_context=(GVC_t *) NULL;
#endif
}