mirror of https://github.com/CGAL/cgal
delete [] instead of delete after a new array
This commit is contained in:
parent
da1791759c
commit
18b04bfb22
|
|
@ -182,7 +182,7 @@ template <class T, class = void> struct pool3 {
|
|||
// No caching
|
||||
template <class T, class = void> struct no_pool {
|
||||
static T pop() { throw "Shouldn't be here!"; }
|
||||
static void push(T t) { delete (t - (extra+1)); }
|
||||
static void push(T t) { delete [] (t - (extra+1)); }
|
||||
static bool empty() { return true; }
|
||||
static const int extra = 0;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue