--- parser3/src/include/pa_memory.h 2003/02/26 11:29:58 1.1.2.4 +++ parser3/src/include/pa_memory.h 2003/03/04 12:38:15 1.1.2.5 @@ -9,7 +9,7 @@ #ifndef PA_MEMORY_H #define PA_MEMORY_H -static const char* IDENT_MEMORY_H="$Date: 2003/02/26 11:29:58 $"; +static const char* IDENT_MEMORY_H="$Date: 2003/03/04 12:38:15 $"; // include @@ -131,7 +131,7 @@ public: {if (this != &src) {if (ptr != src.get()) {if (owns) - delete ptr; + delete[] ptr; owns = src.owns; } else if (src.owns) owns = true; @@ -139,7 +139,7 @@ public: return (*this); } ~smart_ptr() {if (owns) - delete ptr; } + delete[] ptr; } T& operator*() const {return (*get()); } T *get() const