Update of /cvsroot/mahogany/M/src/classes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22350/src/classes
Modified Files:
MessageTemplate.cpp
Log Message:
fixed writing to freed memory from ProfileEnvVarSave dtor (thanks Purify)
Index: MessageTemplate.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/classes/MessageTemplate.cpp,v
retrieving revision 1.36
retrieving revision 1.37
diff -b -u -2 -r1.36 -r1.37
--- MessageTemplate.cpp 20 Jul 2005 17:26:29 -0000 1.36
+++ MessageTemplate.cpp 12 Feb 2006 19:21:06 -0000 1.37
@@ -612,7 +612,9 @@
{
// the templates contain '$'s so disable variable expansion for now
+ {
ProfileEnvVarSave noEnvVarExpansion(profile);
value = profile->readEntry(name);
+ } // destroy ProfileEnvVarSave before (maybe) destroying profile
profile->DecRef();
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates