summaryrefslogtreecommitdiff
path: root/draw
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2010-05-18 23:43:14 +0200
committerSebastian Rasmussen <sebras@hotmail.com>2010-05-18 23:43:14 +0200
commit5f2e7f8a3f194c2399f5737a73a70ceb3a33b9df (patch)
treeed5adb0d5eed64dd2db9b27fefb0c28933cf6b6b /draw
parent109236bf53a257bcefbe59d3d9141bdb6e8846e2 (diff)
downloadmupdf-5f2e7f8a3f194c2399f5737a73a70ceb3a33b9df.tar.xz
Do not check return value from fz_malloc() and fz_realloc() in pdfinfo and Windows viewer.
Diffstat (limited to 'draw')
-rw-r--r--draw/pathscan.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/draw/pathscan.c b/draw/pathscan.c
index 90f888fb..35cf2d39 100644
--- a/draw/pathscan.c
+++ b/draw/pathscan.c
@@ -285,8 +285,6 @@ insertael(fz_ael *ael, fz_gel *gel, int y, int *e)
if (ael->len + 1 == ael->cap) {
int newcap = ael->cap + 64;
fz_edge **newedges = fz_realloc(ael->edges, sizeof(fz_edge*) * newcap);
- if (!newedges)
- return fz_rethrow(-1, "out of memory");
ael->edges = newedges;
ael->cap = newcap;
}
@@ -456,9 +454,6 @@ fz_scanconvert(fz_gel *gel, fz_ael *ael, int eofill, fz_bbox clip,
return fz_okay;
deltas = fz_malloc(xmax - xmin + 1);
- if (!deltas)
- return fz_rethrow(-1, "out of memory");
-
memset(deltas, 0, xmax - xmin + 1);
e = 0;