From: fred Date: Wed, 8 Jan 1997 21:18:53 +0000 (+0000) Subject: flower-1.0.19 X-Git-Tag: release/1.5.59~6431 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ad3bb163d1c67076509573725dce9f187f189e6f;p=lilypond.git flower-1.0.19 --- 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