From 085584aa30b79e7755ffdf50882f7decfd4336be Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Tue, 3 Aug 2010 08:03:23 +0000 Subject: tests: Preparations for custom new/delete (leak detection) git-svn-id: http://pugixml.googlecode.com/svn/trunk@620 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_dom_modify.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_dom_modify.cpp') diff --git a/tests/test_dom_modify.cpp b/tests/test_dom_modify.cpp index 5a5d3ff..c14d8eb 100644 --- a/tests/test_dom_modify.cpp +++ b/tests/test_dom_modify.cpp @@ -584,9 +584,9 @@ TEST(dom_node_declaration_copy) TEST(dom_string_out_of_memory) { - unsigned int length = 65536; + const unsigned int length = 65536; + static char_t string[length + 1]; - char_t* string = new char_t[length + 1]; for (unsigned int i = 0; i < length; ++i) string[i] = 'a'; string[length] = 0; -- cgit v1.2.3