diff options
Diffstat (limited to 'fitz/dev_null.c')
-rw-r--r-- | fitz/dev_null.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fitz/dev_null.c b/fitz/dev_null.c index dc6105f4..4638d802 100644 --- a/fitz/dev_null.c +++ b/fitz/dev_null.c @@ -15,6 +15,8 @@ fz_new_device(fz_context *ctx, void *user) void fz_free_device(fz_device *dev) { + if (dev == NULL) + return; if (dev->free_user) dev->free_user(dev); fz_free(dev->ctx, dev); |