View | Details | Raw Unified | Return to bug 142954
Collapse All | Expand All

(-)exact-image/Makefile (-2 / +1 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	exact-image
8
PORTNAME=	exact-image
9
PORTVERSION=	0.7.4
9
PORTVERSION=	0.7.5
10
PORTREVISION=	1
11
CATEGORIES=	graphics
10
CATEGORIES=	graphics
12
MASTER_SITES=	http://dl.exactcode.de/oss/${PORTNAME}/
11
MASTER_SITES=	http://dl.exactcode.de/oss/${PORTNAME}/
13
12
(-)exact-image/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (exact-image-0.7.4.tar.bz2) = ecf43d9878a759ec056942c533c63ddc
1
MD5 (exact-image-0.7.5.tar.bz2) = 9cf60553cf5ed1bbbf9a59a2e17ac0a2
2
SHA256 (exact-image-0.7.4.tar.bz2) = e091a0b13eccd97a97c9233d939e70a154ffc586e5e509f0b4639e5cdc14db40
2
SHA256 (exact-image-0.7.5.tar.bz2) = d43635e06fdb48ec8c23bbfd66f40c5a1fc64c81913220f267dd7449050d0c69
3
SIZE (exact-image-0.7.4.tar.bz2) = 531051
3
SIZE (exact-image-0.7.5.tar.bz2) = 532314
(-)exact-image/files/patch-bardecode__code128.hh (+11 lines)
Line 0 Link Here
1
--- bardecode/code128.hh.orig	2010-01-16 23:58:07.000000000 -0500
2
+++ bardecode/code128.hh	2010-01-16 23:38:25.000000000 -0500
3
@@ -235,7 +235,7 @@
4
         switch (code_set) {
5
         case code_set_c:
6
             if (c < 100) {
7
-                char str[2];
8
+                char str[3];
9
                 sprintf(str,"%02d",c);
10
                 return std::string(str);
11
             } else {
(-)exact-image/files/patch-codecs__bmp.cc (-3 / +28 lines)
Lines 1-6 Link Here
1
--- codecs/bmp.cc.orig	2009-07-02 17:37:58.000000000 -0400
1
--- codecs/bmp.cc.orig	2009-04-27 13:54:29.000000000 -0400
2
+++ codecs/bmp.cc	2009-07-02 18:38:49.000000000 -0400
2
+++ codecs/bmp.cc	2010-01-17 00:32:01.000000000 -0500
3
@@ -628,9 +628,9 @@
3
@@ -441,6 +441,8 @@
4
       uint8_t* row_data = (uint8_t*) malloc (file_stride);
5
       if (!data || !row_data) {
6
 	std::cerr << "Can't allocate space for image buffer\n";
7
+	free(data);
8
+	free(row_data);
9
 	goto bad1;
10
       }
11
       
12
@@ -522,6 +524,7 @@
13
       comprbuf = (uint8_t *) malloc( compr_size );
14
       if (!comprbuf) {
15
 	std::cerr << "Can't allocate space for compressed scanline buffer\n";
16
+	free(comprbuf);
17
 	goto bad1;
18
       }
19
       uncomprbuf = (uint8_t *) malloc( uncompr_size );
20
@@ -593,6 +596,7 @@
21
       data = (uint8_t *) malloc( uncompr_size );
22
       if (!data) {
23
 	std::cerr << "Can't allocate space for final uncompressed scanline buffer\n";
24
+	free(data);
25
 	goto bad1;
26
       }
27
       
28
@@ -628,9 +632,9 @@
4
       
29
       
5
       colorspace_de_palette (image, clr_tbl_size, rmap, gmap, bmap);
30
       colorspace_de_palette (image, clr_tbl_size, rmap, gmap, bmap);
6
       
31
       
(-)exact-image/files/patch-codecs__jpeg.cc (-3 / +3 lines)
Lines 1-11 Link Here
1
--- codecs/jpeg.cc.orig	2009-07-02 18:34:41.000000000 -0400
1
--- codecs/jpeg.cc.orig	2009-06-14 08:19:28.000000000 -0400
2
+++ codecs/jpeg.cc	2009-07-02 18:43:42.000000000 -0400
2
+++ codecs/jpeg.cc	2010-01-16 21:51:34.000000000 -0500
3
@@ -683,7 +683,7 @@
3
@@ -683,7 +683,7 @@
4
      * We need to clean up the JPEG object, close the input file, and return.
4
      * We need to clean up the JPEG object, close the input file, and return.
5
      */
5
      */
6
     jpeg_destroy_decompress (cinfo);
6
     jpeg_destroy_decompress (cinfo);
7
-    free (cinfo);
7
-    free (cinfo);
8
+    delete[] cinfo;
8
+    delete cinfo;
9
     return false;
9
     return false;
10
   }
10
   }

Return to bug 142954