blob: dc72acd31bf2976df851ec803b1aa4def8135c42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
diff -ru freehdl-20050510/fire/tree-supp.cc freehdl-20050510-new/fire/tree-supp.cc
--- freehdl-20050510/fire/tree-supp.cc 2000-03-31 19:52:44.000000000 +0200
+++ freehdl-20050510-new/fire/tree-supp.cc 2005-08-30 14:31:16.000000000 +0200
@@ -37,8 +37,6 @@
{
if (proptab)
{
- for (int i = 0; i < proptab->n_props; i++)
- delete proptab->props[i];
delete proptab;
}
}
@@ -49,7 +47,7 @@
if (proptab == NULL || key >= proptab->n_props)
{
tree_prop_tab *new_proptab = (tree_prop_tab *)
- new char[(sizeof(tree_prop_tab) + key*sizeof(tree_prop*))];
+ operator new(sizeof(tree_prop_tab) + key*sizeof(tree_prop*));
int old_size;
if (proptab)
{
@@ -462,7 +460,7 @@
operator new (size_t size, tree_histogram *hist)
{
hist->enter (size);
- return (void *)new char[size];
+ return operator new(size);
}
tree_histogram::tree_histogram ()
diff -ru freehdl-20050510/v2cc/v2cc.cc freehdl-20050510-new/v2cc/v2cc.cc
--- freehdl-20050510/v2cc/v2cc.cc 2005-02-15 11:03:01.000000000 +0100
+++ freehdl-20050510-new/v2cc/v2cc.cc 2005-08-30 14:32:34.000000000 +0200
@@ -508,7 +508,7 @@
if (dependencies_file && du && !du->is_error ())
fprintf (dependencies_file, " %s", fn);
- delete fn;
+ delete[] fn;
}
return du;
|