[Kde-games-devel] Re: KPoker patch
Marco Krohn
marco.krohn at gmx.de
Sat Jul 12 16:10:50 CEST 2003
On Saturday 12 July 2003 11:34, Albert 'TSDgeos' Astals Cid wrote:
> >Concerning the memory problem:
> >I think it would be better to replace
> > delete[] cardHelp;
> >by
> > delete[] cardHelp;
> > cardHelp = 0;
> >--> then you don't need yet another ugly static member.
>
> Didn't know that "delete[] 0;" was a correct sentence, i thought it would
> make a segfault or something like that, of course, your solution is way
> better.
http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.7
best regards,
Marco
--
Marco Krohn
Theoretical Physics
University of Hannover
More information about the kde-games-devel
mailing list