mail[Wesnoth-commits] r25219 - /trunk/src/server/simple_wml.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by dave on March 28, 2008 - 06:11:
Author: dave
Date: Fri Mar 28 06:11:19 2008
New Revision: 25219

URL: http://svn.gna.org/viewcvs/wesnoth?rev=25219&view=rev
Log:
added debugging code to track bug

Modified:
    trunk/src/server/simple_wml.cpp

Modified: trunk/src/server/simple_wml.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/server/simple_wml.cpp?rev=25219&r1=25218&r2=25219&view=diff
==============================================================================
--- trunk/src/server/simple_wml.cpp (original)
+++ trunk/src/server/simple_wml.cpp Fri Mar 28 06:11:19 2008
@@ -244,6 +244,9 @@
                        delete *j;
                }       
        }
+
+       //TODO: DEBUG CODE. Fill with a memory pattern to debug crashing!
+       memset(this, 0xab, sizeof(*this));
 }
 
 namespace {
@@ -690,6 +693,9 @@
        delete root_;
 
        detach_list();
+
+       //TODO: DEBUG CODE. Fill with a memory pattern to debug crashing!
+       memset(this, 0xab, sizeof(*this));
 }
 
 const char* document::dup_string(const char* str)




Related Messages


Powered by MHonArc, Updated Fri Mar 28 10:02:07 2008