summaryrefslogtreecommitdiff
path: root/source/fitz/draw-device.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-02-10 20:26:33 +0000
committerRobin Watts <robin.watts@artifex.com>2015-02-10 20:29:20 +0000
commit4fe9caafead64704a16c7093b72115893be3087f (patch)
tree219c4d52f49500c491681ecb06457caab582f86e /source/fitz/draw-device.c
parent65ada9d7fc252f3dad9b2d3a4a9e571d16358cbd (diff)
downloadmupdf-4fe9caafead64704a16c7093b72115893be3087f.tar.xz
Add some Memento_labels to aid debugging of leaks.
Diffstat (limited to 'source/fitz/draw-device.c')
-rw-r--r--source/fitz/draw-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c
index 4592f8cf..f927e1b5 100644
--- a/source/fitz/draw-device.c
+++ b/source/fitz/draw-device.c
@@ -107,7 +107,7 @@ static void fz_grow_stack(fz_draw_device *dev)
if (dev->stack == &dev->init_stack[0])
{
- stack = fz_malloc(dev->ctx, sizeof(*stack) * max);
+ stack = Memento_label(fz_malloc(dev->ctx, sizeof(*stack) * max), "draw device stack");
memcpy(stack, dev->stack, sizeof(*stack) * dev->stack_cap);
}
else