image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
assert(exception->signature == MagickCoreSignature);
+ assert(graphic_context != (GVC_t *) NULL);
image=AcquireImage(image_info,exception);
status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
if (status == MagickFalse)
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("GV");
(void) UnregisterMagickInfo("DOT");
#if defined(MAGICKCORE_GVC_DELEGATE)
- gvFreeContext(graphic_context);
- graphic_context=(GVC_t *) NULL;
+ if (graphic_context != (GVC_t *) NULL)
+ {
+ gvFreeContext(graphic_context);
+ graphic_context=(GVC_t *) NULL;
+ }
#endif
}