Am 02.05.2011 02:25, schrieb Ichthyostega:
> while we at that topic, can someone please enlighten me?
> How can the following code even remotely work?
>
>
> Autos::~Autos()
> {
> while(last) delete last;
> delete default_auto;
> }
>
>
> Hypothesis 1: last is already NULL when we enter the dtor, so we'll never
> enter an infinite loop ?
>
> Hypothesis 2: there is some rather un-obvious trickery performed within
> the dtor of the node class, which indirectly kicks back into
> the List class?
The latter. The magic line that kicks in is in guicast/linklist.h:335.
-- Hannes
_______________________________________________
Cinelerra mailing list
[email protected]
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra