Again... it all depends on what you want to do with that pointer, be it smart or not.
It depends also on the behavior of... well... it depends on how smart is it, when it kilss himself anso, based on the documentation of the library you're using.
But, if not declared inside the loop, the pointer should not go out of scope and commit suicide, so it should be ok.
I'm interested also in other opinions so anybody should feel free to smash me if I'm wrong. [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro