zhaopuming / quickfast

Automatically exported from code.google.com/p/quickfast
Other
1 stars 0 forks source link

Mismatch between memory managers #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In XMLTemplateParser.cpp, the return value from transcode should not be
freed by the scoped_array destructor.  Instead, it should be freed using
XMLString::release.  In my project, the default memory allocator is
changed.  So, Xerxes allocated the memory using malloc(), but the eventual
delete[] performed by scoped_array uses my custom memory allocator's
free().  This causes my memory allocator to assert.

Original issue reported on code.google.com by aschwa...@gmail.com on 24 May 2010 at 10:28

GoogleCodeExporter commented 9 years ago
Thanks for pointing this out.  I'll take a look.

Dale

Original comment by dale.wil...@gmail.com on 25 May 2010 at 1:52

GoogleCodeExporter commented 9 years ago
A possible fix is in R417.  I don't have a custom allocator that I can use to 
test 
this, so I'll wait until you've had a chance to look at it before I mark this 
Fixed.

Original comment by dale.wil...@gmail.com on 25 May 2010 at 7:05

GoogleCodeExporter commented 9 years ago
Looks good to me.

Original comment by aschwa...@gmail.com on 27 May 2010 at 11:42

GoogleCodeExporter commented 9 years ago
R417

Original comment by dale.wil...@gmail.com on 1 Jun 2010 at 1:33