diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-02-10 20:26:33 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-02-10 20:29:20 +0000 |
commit | 4fe9caafead64704a16c7093b72115893be3087f (patch) | |
tree | 219c4d52f49500c491681ecb06457caab582f86e /source/fitz/context.c | |
parent | 65ada9d7fc252f3dad9b2d3a4a9e571d16358cbd (diff) | |
download | mupdf-4fe9caafead64704a16c7093b72115893be3087f.tar.xz |
Add some Memento_labels to aid debugging of leaks.
Diffstat (limited to 'source/fitz/context.c')
-rw-r--r-- | source/fitz/context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/context.c b/source/fitz/context.c index 6a986e59..36ad879f 100644 --- a/source/fitz/context.c +++ b/source/fitz/context.c @@ -90,14 +90,14 @@ new_context_phase1(fz_alloc_context *alloc, fz_locks_context *locks) ctx->glyph_cache = NULL; - ctx->error = fz_malloc_no_throw(ctx, sizeof(fz_error_context)); + ctx->error = Memento_label(fz_malloc_no_throw(ctx, sizeof(fz_error_context)), "fz_error_context"); if (!ctx->error) goto cleanup; ctx->error->top = -1; ctx->error->errcode = FZ_ERROR_NONE; ctx->error->message[0] = 0; - ctx->warn = fz_malloc_no_throw(ctx, sizeof(fz_warn_context)); + ctx->warn = Memento_label(fz_malloc_no_throw(ctx, sizeof(fz_warn_context)), "fz_warn_context"); if (!ctx->warn) goto cleanup; ctx->warn->message[0] = 0; |