aboutsummaryrefslogtreecommitdiff
path: root/graphics/exact-image/files
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/exact-image/files')
-rw-r--r--graphics/exact-image/files/patch-codecs__bmp.cc15
-rw-r--r--graphics/exact-image/files/patch-codecs__gif.cc11
-rw-r--r--graphics/exact-image/files/patch-codecs__jpeg.cc11
-rw-r--r--graphics/exact-image/files/patch-codecs__xpm.cc19
-rw-r--r--graphics/exact-image/files/patch-lib__ContourMatching.cc10
-rw-r--r--graphics/exact-image/files/patch-lib__ContourUtility.cc13
-rw-r--r--graphics/exact-image/files/patch-utility__Timer.cc11
7 files changed, 90 insertions, 0 deletions
diff --git a/graphics/exact-image/files/patch-codecs__bmp.cc b/graphics/exact-image/files/patch-codecs__bmp.cc
new file mode 100644
index 000000000000..0a70c4bfbfdb
--- /dev/null
+++ b/graphics/exact-image/files/patch-codecs__bmp.cc
@@ -0,0 +1,15 @@
+--- codecs/bmp.cc.orig 2009-07-02 17:37:58.000000000 -0400
++++ codecs/bmp.cc 2009-07-02 18:38:49.000000000 -0400
+@@ -628,9 +628,9 @@
+
+ colorspace_de_palette (image, clr_tbl_size, rmap, gmap, bmap);
+
+- delete (rmap);
+- delete (gmap);
+- delete (bmap);
++ delete[] rmap;
++ delete[] gmap;
++ delete[] bmap;
+
+ free(clr_tbl);
+ clr_tbl = NULL;
diff --git a/graphics/exact-image/files/patch-codecs__gif.cc b/graphics/exact-image/files/patch-codecs__gif.cc
new file mode 100644
index 000000000000..6f1b3d72a396
--- /dev/null
+++ b/graphics/exact-image/files/patch-codecs__gif.cc
@@ -0,0 +1,11 @@
+--- codecs/gif.cc.orig 2009-07-02 18:34:16.000000000 -0400
++++ codecs/gif.cc 2009-07-02 18:38:40.000000000 -0400
+@@ -232,7 +232,7 @@
+ }
+ free (OutputBuffer);
+
+- delete (RedBuffer); delete (GreenBuffer); delete (BlueBuffer);
++ delete[] RedBuffer; delete[] GreenBuffer; delete[] BlueBuffer;
+
+ EGifCloseFile(GifFile);
+ return true;
diff --git a/graphics/exact-image/files/patch-codecs__jpeg.cc b/graphics/exact-image/files/patch-codecs__jpeg.cc
new file mode 100644
index 000000000000..7ab7d47d82e3
--- /dev/null
+++ b/graphics/exact-image/files/patch-codecs__jpeg.cc
@@ -0,0 +1,11 @@
+--- codecs/jpeg.cc.orig 2009-07-02 18:34:41.000000000 -0400
++++ codecs/jpeg.cc 2009-07-02 18:43:42.000000000 -0400
+@@ -683,7 +683,7 @@
+ * We need to clean up the JPEG object, close the input file, and return.
+ */
+ jpeg_destroy_decompress (cinfo);
+- free (cinfo);
++ delete[] cinfo;
+ return false;
+ }
+
diff --git a/graphics/exact-image/files/patch-codecs__xpm.cc b/graphics/exact-image/files/patch-codecs__xpm.cc
new file mode 100644
index 000000000000..e47fe83dbc91
--- /dev/null
+++ b/graphics/exact-image/files/patch-codecs__xpm.cc
@@ -0,0 +1,19 @@
+--- codecs/xpm.cc.orig 2009-07-02 18:34:51.000000000 -0400
++++ codecs/xpm.cc 2009-07-02 18:48:45.000000000 -0400
+@@ -131,6 +131,7 @@
+ // Type: c -> colour, m -> monochrome, g -> grayscale, and s -> symbolic
+ if (type != "c") {
+ std::cerr << "XPM color type: " << type << " not yet implemented." << std::endl;
++ delete[] rmap; delete[] gmap; delete[] bmap;
+ return false;
+ }
+
+@@ -197,7 +198,7 @@
+ }
+
+ colorspace_de_palette (image, colors, rmap, gmap, bmap);
+- delete (rmap); delete (gmap); delete (bmap);
++ delete[] rmap; delete[] gmap; delete[] bmap;
+ rmap = gmap = bmap = 0;
+
+ return true;
diff --git a/graphics/exact-image/files/patch-lib__ContourMatching.cc b/graphics/exact-image/files/patch-lib__ContourMatching.cc
new file mode 100644
index 000000000000..fbff7b57241c
--- /dev/null
+++ b/graphics/exact-image/files/patch-lib__ContourMatching.cc
@@ -0,0 +1,10 @@
+--- lib/ContourMatching.cc.orig 2009-07-10 11:19:11.000000000 -0400
++++ lib/ContourMatching.cc 2009-07-10 11:20:05.000000000 -0400
+@@ -1,6 +1,7 @@
+ #include <cmath>
+ #include <algorithm>
+ #include <iostream>
++#include <stdio.h>
+
+ #include "ContourMatching.hh"
+
diff --git a/graphics/exact-image/files/patch-lib__ContourUtility.cc b/graphics/exact-image/files/patch-lib__ContourUtility.cc
new file mode 100644
index 000000000000..40bd5e3f73ef
--- /dev/null
+++ b/graphics/exact-image/files/patch-lib__ContourUtility.cc
@@ -0,0 +1,13 @@
+--- lib/ContourUtility.cc.orig 2009-07-10 10:25:43.000000000 -0400
++++ lib/ContourUtility.cc 2009-07-10 10:26:31.000000000 -0400
+@@ -1,9 +1,9 @@
+-#include "ContourUtility.hh"
+ #include <cmath>
+ #include <cstdlib>
+ //#include <iostream>
+ #include <assert.h>
+ #include <stdio.h>
++#include "ContourUtility.hh"
+
+ void CenterAndReduce(const Contours::Contour& source,
+ Contours::Contour& dest,
diff --git a/graphics/exact-image/files/patch-utility__Timer.cc b/graphics/exact-image/files/patch-utility__Timer.cc
new file mode 100644
index 000000000000..4e4919b77a1c
--- /dev/null
+++ b/graphics/exact-image/files/patch-utility__Timer.cc
@@ -0,0 +1,11 @@
+--- utility/Timer.cc.orig 2009-07-10 11:30:14.000000000 -0400
++++ utility/Timer.cc 2009-07-10 11:30:30.000000000 -0400
+@@ -145,7 +145,7 @@
+ );
+ return ((uint64_t)hi << 32) | lo;
+ #endif
+-#elif define(__mips__)
++#elif defined(__mips__)
+ unsigned int ticks;
+ __asm__ __volatile__ ("dmfc0 %0,$9" : "=r" (ticks));
+ return ticks;