Subject: [htdig3-dev] Bug in htdig/Document.cc
From: Zoran Constantinescu-Fulop (Zoran.Constantinescu-Fulop@idi.ntnu.no)
Date: Tue Dec 28 1999 - 05:17:09 PST
Hi,
There is a bug (I think :) in the destructor of the
Document class. There are two lines:
if (transportConnect)
delete transportConnect;
The transportConnect variable is allocated through
the _static_ http variable in Dcument::Retrieve()
if (!http)
http = new HtHTTP();
...
transportConnect = http;
So the trasportConnect is deleted when the Document
class is destroyed, but the value of http variable
remains different from 0! So we are using some
garbage for any new Document classes after destroying
one instance of it.
Just commenting the two lines in the destructor
solves (most easily) the problem.
--zoran
-------------------------------
Zoran Constantinescu -o)
zoran@idi.ntnu.no /\\
http://www.idi.ntnu.no/~zoran _\_v
-------------------------------
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
htdig3-dev-unsubscribe@htdig.org
You will receive a message to confirm this.
This archive was generated by hypermail 2b28 : Tue Dec 28 1999 - 05:31:50 PST