summaryrefslogtreecommitdiff
path: root/print/ghostscript8/files/patch-lips__gdevnpdl.c
blob: ad237e348f15e57a68a8b051b5f397aa4e360d42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- lips/gdevnpdl.c.orig	Thu Nov  2 12:09:18 2000
+++ lips/gdevnpdl.c	Fri Dec 31 17:32:52 2004
@@ -582,7 +582,7 @@
     int code;
     int maxY = lprn->BlockLine / lprn->nBh * lprn->nBh;
 
-    if (!(lprn->CompBuf = gs_malloc(line_size * maxY, sizeof(byte), "npdl_print_page_copies(CompBuf)")))
+    if (!(lprn->CompBuf = gs_malloc(pdev->memory, line_size * maxY, sizeof(byte), "npdl_print_page_copies(CompBuf)")))
 	return_error(gs_error_VMerror);
 
 
@@ -680,7 +680,7 @@
     /* Form Feed */
     fputs("\014", prn_stream);
 
-    gs_free(lprn->CompBuf, line_size * maxY, sizeof(byte), "npdl_print_page_copies(CompBuf)");
+    gs_free(pdev->memory, lprn->CompBuf, line_size * maxY, sizeof(byte), "npdl_print_page_copies(CompBuf)");
     return 0;
 }