diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-10-15 01:55:05 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-10-18 21:32:14 +0800 |
commit | ce82537df9e4b832213138d942be4482418b9e50 (patch) | |
tree | 77745cba1b3c7ffaca9db4876e20993fc0495801 /source/fitz/hash.c | |
parent | 23ac569165b66403abfe72e89007675ceaa9bde0 (diff) | |
download | mupdf-ce82537df9e4b832213138d942be4482418b9e50.tar.xz |
All external drop functions handles NULL.
Diffstat (limited to 'source/fitz/hash.c')
-rw-r--r-- | source/fitz/hash.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/fitz/hash.c b/source/fitz/hash.c index 31a692c0..e16aefd1 100644 --- a/source/fitz/hash.c +++ b/source/fitz/hash.c @@ -96,6 +96,9 @@ fz_hash_get_val(fz_context *ctx, fz_hash_table *table, int idx) void fz_drop_hash(fz_context *ctx, fz_hash_table *table) { + if (!table) + return; + fz_free(ctx, table->ents); fz_free(ctx, table); } |