Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/goo/gmempp.cc
diff options
context:
space:
mode:
authorMartin Kretzschmar <mkretzschmar@src.gnome.org>2002-09-18 20:32:18 (GMT)
committer Martin Kretzschmar <mkretzschmar@src.gnome.org>2002-09-18 20:32:18 (GMT)
commit7aac8dc8533347e21311b15186e0af82f1b22fd6 (patch)
tree02650bb02c8a1d8468c22f50ff151885d233016b /pdf/goo/gmempp.cc
parentd99fb4f4acd14fcdbda968abd907547dcc7af40c (diff)
Synched with Xpdf 0.92
this adds "decryption" support testing this code after six weeks immediately gives me segfaults (image drawing) :-O must have fixed that later without knowing :-O
Diffstat (limited to 'pdf/goo/gmempp.cc')
-rw-r--r--pdf/goo/gmempp.cc14
1 files changed, 11 insertions, 3 deletions
diff --git a/pdf/goo/gmempp.cc b/pdf/goo/gmempp.cc
index 41dd441..6eb6494 100644
--- a/pdf/goo/gmempp.cc
+++ b/pdf/goo/gmempp.cc
@@ -11,13 +11,21 @@
#include "gmem.h"
#ifdef DEBUG_MEM
-void *operator new(long size) {
+
+void *operator new(size_t size) {
+ return gmalloc((int)size);
+}
+
+void *operator new[](size_t size) {
return gmalloc((int)size);
}
-#endif
-#ifdef DEBUG_MEM
void operator delete(void *p) {
gfree(p);
}
+
+void operator delete[](void *p) {
+ gfree(p);
+}
+
#endif