[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Memory leak in cgicc v 3.1.5 ?
From: |
François Degros |
Subject: |
Memory leak in cgicc v 3.1.5 ? |
Date: |
Wed, 13 Jun 2001 10:39:38 +0200 |
Hello,
It seems there is a memory leak in HTMLElement::operator= (const
HTMLElement& element)
You should add the following two lines at the beginning of this method:
delete fAttributes;
delete fEmbedded;
In this case, you should modify the copy constructor in this way to avoid
dandling pointers:
CGICCNS HTMLElement::HTMLElement(const HTMLElement& element)
: MStreamable(),
fAttributes (0),
fEmbedded (0)
{
this->operator= (element);
}
Best regards,
François Degros
- Memory leak in cgicc v 3.1.5 ?,
François Degros <=