From ad3bb163d1c67076509573725dce9f187f189e6f Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 8 Jan 1997 21:18:53 +0000 Subject: [PATCH] flower-1.0.19 --- flower/plist.tcc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/flower/plist.tcc b/flower/plist.tcc index 2581d24279..69986035d2 100644 --- a/flower/plist.tcc +++ b/flower/plist.tcc @@ -1,15 +1,14 @@ #include "plist.hh" -// not inlined since it assumes knowledge of destructor. template -void -IPointerList::remove(PCursor me ) +IPointerList::~IPointerList() { - if ( me.ok() ) { - delete me.ptr(); - List::remove(me); + PCursor c( *this ); + while (c.ok()) { + c.del(); } } + template PCursor PointerList::find(T what ) const -- 2.39.5