-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 04 July 2002 06:51 am, Rob Kaper wrote: > - delete ftxt; > + delete [] ftxt; > > ftxt is a char*, but I do not see a new char[] to match the delete[] > anywhere. It looks like it is just a pointer to the return value of one of > the methods called. Can whomever actually wrote this comment on why the > delete is there in the first place?
This is the proper way to use delete on a pointer that is returned from qstrdup(). qstrdup() calls new []. I didn't fix it though, Dirk did. Jon -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9JIfDld1KayKQpx8RAqqMAKDvtqSXbGg0ZSvT8M8MKxkgweHS4QCcCZTB vb6/Y8w1Zf9hekhoaK5JO/o= =4y2e -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Caffeinated soap. No kidding. http://thinkgeek.com/sf _______________________________________________ Licq-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/licq-devel