Update of /cvsroot/mahogany/M/src/util
In directory sc8-pr-cvs1:/tmp/cvs-serv2643/src/util
Modified Files:
miscutil.cpp
Log Message:
fixed memory leak with latest wxWin cvs
Index: miscutil.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/util/miscutil.cpp,v
retrieving revision 1.46
retrieving revision 1.47
diff -b -u -2 -r1.46 -r1.47
--- miscutil.cpp 16 Oct 2003 13:45:10 -0000 1.46
+++ miscutil.cpp 18 Oct 2003 23:45:12 -0000 1.47
@@ -100,10 +100,10 @@
else // a colour name
{
- wxColour *col = wxTheColourDatabase->FindColour(name);
- if ( !col )
+ wxColour col = wxTheColourDatabase->Find(name);
+ if ( !col.Ok() )
return FALSE;
if ( colour )
- *colour = *col;
+ *colour = col;
}
-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise
Linux in the Boardroom; in the Front Office; & in the Server Room
http://www.enterpriselinuxforum.com
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates