Update of /cvsroot/mahogany/M/src/util
In directory sc8-pr-cvs1:/tmp/cvs-serv4520/src/util
Modified Files:
miscutil.cpp strutil.cpp
Log Message:
Fixed harmless memory allocation bugs
Index: miscutil.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/util/miscutil.cpp,v
retrieving revision 1.42
retrieving revision 1.43
diff -b -u -2 -r1.42 -r1.43
--- miscutil.cpp 19 Sep 2003 13:31:23 -0000 1.42
+++ miscutil.cpp 2 Oct 2003 09:49:38 -0000 1.43
@@ -143,3 +143,2 @@
}
}
-
Index: strutil.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/util/strutil.cpp,v
retrieving revision 1.117
retrieving revision 1.118
diff -b -u -2 -r1.117 -r1.118
--- strutil.cpp 26 Sep 2003 15:10:37 -0000 1.117
+++ strutil.cpp 2 Oct 2003 09:49:38 -0000 1.118
@@ -1423,4 +1423,6 @@
}
+IMPLEMENT_BOUND_POINTER(DetectSignature::RegExPointer)
+
DetectSignature::DetectSignature()
{
@@ -1428,13 +1430,4 @@
// don't use RE at all by default because the manual code is faster
m_useRE = false;
- m_reSig = NULL;
-#endif
-}
-
-DetectSignature::~DetectSignature()
-{
-#if wxUSE_REGEX
- if( m_reSig )
- delete m_reSig;
#endif
}
@@ -1448,5 +1441,5 @@
{
// we have no choice but to use the user-supplied RE
- m_reSig = new wxRegEx;
+ m_reSig.Initialize();
// we implicitly anchor the RE at start/end of line
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates