S
solosnake
Whilst browsing Flipcode I noticed this code:
class CConsole: public I_TextOutput
{
public:
...
void Release() { delete this; }
...
};
The 'delete this;' caught my eye. Is such code safe?
The full article is here :
http://www.flipcode.com/articles/article_winplugins.shtml
Thanks,
solosnake
class CConsole: public I_TextOutput
{
public:
...
void Release() { delete this; }
...
};
The 'delete this;' caught my eye. Is such code safe?
The full article is here :
http://www.flipcode.com/articles/article_winplugins.shtml
Thanks,
solosnake