Update of /cvsroot/mahogany/M/src/util
In directory usw-pr-cvs1:/tmp/cvs-serv21672/src/util
Modified Files:
matchurl.cpp
Log Message:
attempt to fix memory leaks in KeywordDetector - failed
Index: matchurl.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/util/matchurl.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -b -u -2 -r1.6 -r1.7
--- matchurl.cpp 26 Apr 2002 23:10:05 -0000 1.6
+++ matchurl.cpp 26 Apr 2002 23:27:35 -0000 1.7
@@ -39,5 +39,11 @@
public:
KeywordDetectorCell(char c) :
- _c(c), _son(0), _brother(0), _isKey(0), _back(0) {}
+ _c(c), _son(NULL), _brother(NULL), _isKey(0), _back(NULL) {}
+
+ ~KeywordDetectorCell()
+ {
+ delete _son;
+ //delete _brother; -- this results in infinite recursion somehow
+ }
private:
@@ -60,6 +66,6 @@
class KeywordDetector {
public:
- KeywordDetector() : _root(0) {};
- ~KeywordDetector() {};
+ KeywordDetector() : _root(NULL) { }
+ ~KeywordDetector() { delete _root; }
public:
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates