[poppler] poppler/poppler: TextOutputDev.cc, 1.11, 1.12 UnicodeMap.cc, 1.1.1.1, 1.2

Marco Pesenti Gritti marco at freedesktop.org
Fri Sep 16 11:12:05 PDT 2005


Update of /cvs/poppler/poppler/poppler
In directory gabe:/tmp/cvs-serv2176/poppler

Modified Files:
	TextOutputDev.cc UnicodeMap.cc 
Log Message:
2005-09-16  Marco Pesenti Gritti  <mpg at redhat.com>

        * poppler/ArthurOutputDev.cc:
        * poppler/CairoFontEngine.cc:
        * poppler/TextOutputDev.cc:
        * poppler/UnicodeMap.cc:

        Use mallocn when possible



Index: TextOutputDev.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/TextOutputDev.cc,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- TextOutputDev.cc	27 Aug 2005 08:43:43 -0000	1.11
+++ TextOutputDev.cc	16 Sep 2005 18:12:02 -0000	1.12
@@ -3036,7 +3036,7 @@
     : TextSelectionVisitor(page)
 {
   fragsSize = 256;
-  frags = (TextLineFrag *)gmalloc(fragsSize * sizeof(TextLineFrag));
+  frags = (TextLineFrag *)gmallocn(fragsSize, sizeof(TextLineFrag));
   nFrags = 0;
 }
 

Index: UnicodeMap.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/UnicodeMap.cc,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- UnicodeMap.cc	3 Mar 2005 19:46:04 -0000	1.1.1.1
+++ UnicodeMap.cc	16 Sep 2005 18:12:02 -0000	1.2
@@ -53,7 +53,7 @@
   map = new UnicodeMap(encodingNameA->copy());
 
   size = 8;
-  map->ranges = (UnicodeMapRange *)gmalloc(size * sizeof(UnicodeMapRange));
+  map->ranges = (UnicodeMapRange *)gmallocn(size, sizeof(UnicodeMapRange));
   eMapsSize = 0;
 
   line = 1;



More information about the poppler mailing list