Index: plug_footprint.c =================================================================== --- plug_footprint.c (revision 6883) +++ plug_footprint.c (revision 6884) @@ -111,7 +111,7 @@ void pcb_fp_fclose(FILE * f, pcb_fp_fopen_ctx_t *fctx) { - if (fctx->backend->fclose != NULL) + if ((fctx->backend != NULL) && (fctx->backend->fclose != NULL)) fctx->backend->fclose(fctx->backend, f, fctx); }